/* =========================
   Reset and base styles
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #34495e 0%, #34495e  100%);
    --secondary-gradient: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --danger-gradient: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    --warning-gradient: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    --dark-color: #000000;
    --light-color: #e4e4e4;
    --border-color: #00C2D8;
    --text-color: #000000;
    --text-light: #004116;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #e2e2e0 0%, #e2e2e0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    line-height: 1.6;
}

/* =========================
   Container + global animation
========================= */
.container {
    background: #F8F9FB;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Header
========================= */
.app-header {
    text-align: center;
    color: #f56565;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.app-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.app-header .tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

/* =========================
   Navigation Strip Styles
========================= */
.nav-strip {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    height: 45px;
    margin: 20px 0 30px 0;
}

.nav-strip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.nav-strip-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-strip-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strip-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3px;
}

.strip-item { position: relative; }

.strip-link {
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.strip-link:hover { background: rgba(255, 255, 255, 0.1); }

.strip-link.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.strip-link i { font-size: 14px; }

/* =========================
   Auth card styles (login/register)
========================= */
.auth-card {
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.auth-card__header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.auth-card__badge {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
}

.form-title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.2px;
}

.form-subtitle {
    margin: 6px 0 0;
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.35;
}

/* Benefits row */
.auth-card__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.benefit {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    opacity: 0.92;
}

.benefit i { opacity: 0.9; }

/* Form */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0.92;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .input-icon {
    position: absolute;
    left: 12px;
    opacity: 0.7;
    pointer-events: none;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    padding: 12px 42px 12px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.24);
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    background: transparent;
    border: 0;
    padding: 6px 8px;
    border-radius: 10px;
    opacity: 0.85;
    cursor: pointer;
}

.toggle-visibility:hover { background: rgba(255,255,255,0.06); }

.field-errors {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 80, 80, 0.25);
    background: rgba(255, 80, 80, 0.08);
}

.error-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.35;
    font-size: 0.92rem;
}

.helptext {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    opacity: 0.75;
    font-size: 0.9rem;
}

/* =========================
   Buttons
========================= */
.btn-primary,
.btn-secondary,
.btn-share {
    border: none;
    padding: 18px 30px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    padding: 12px 14px;
}

.auth-footer { margin-top: 14px; text-align: center; }

.auth-alt {
    margin: 10px 0 0;
    opacity: 0.9;
    text-align: center;
}

.form-note {
    margin: 10px 0 0;
    opacity: 0.7;
    font-size: 0.85rem;
    text-align: center;
}

.form-link { text-decoration: none; }
.form-link:hover { text-decoration: underline; }

/* =========================
   Help Section
========================= */
.help-section {
    margin-top: 40px;
    padding: 25px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.help-section h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.help-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.tip i {
    color: #48bb78;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =========================
   Footer
========================= */
.app-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 25px; }

    .app-header h1 { font-size: 2.2rem; }

    .nav-strip {
        height: auto;
        padding: 10px 0;
        margin: 15px 0 25px 0;
    }

    .nav-strip-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-strip-left,
    .nav-strip-right {
        width: 100%;
        justify-content: center;
    }

    .strip-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .auth-card__benefits { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 20px; }

    .app-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary { padding: 16px 20px; }
}

/* =========================
   Logo + accessibility helpers
========================= */
.tagline {
    margin-top: 10px;
    text-align: center;
}


/* Messages container */
.messages-container{
    margin: 16px 0;
  }
  
  /* Base message */
  .message{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15,35,69,0.12);
    background: rgba(255,255,255,0.92);
    color: #0F2345;
    font-weight: 700;
  }
  
  /* ERROR (red) */
  .message.error{
    border-color: rgba(220,53,69,0.30);
    background: rgba(220,53,69,0.08);
    color: #8b1020;
  }
  
  /* SUCCESS (cyan theme) */
  .message.success{
    border-color: rgba(0,194,216,0.30);
    background: rgba(0,194,216,0.10);
    color: #0F2345;
  }
  
  /* INFO/WARNING (optional) */
  .message.info{
    border-color: rgba(15,35,69,0.18);
    background: rgba(15,35,69,0.06);
    color: #0F2345;
  }
  .message.warning{
    border-color: rgba(255,193,7,0.35);
    background: rgba(255,193,7,0.12);
    color: #5a4100;
  }
  
  /* Icon spacing */
  .message i{
    margin-top: 2px;
  }
  