/* ============================================================
   CV Builder — Auth Pages Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --navy:      #1e3a5f;
    --blue:      #2d6a9f;
    --light-blue:#4a90c4;
    --accent:    #f0a500;
    --bg:        #f0f4f9;
    --card-bg:   #ffffff;
    --text:      #1a2a3a;
    --muted:     #6b7e92;
    --border:    #d8e3ef;
    --error:     #e74c3c;
    --success:   #27ae60;
    --radius:    12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(45,106,159,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30,58,95,.1) 0%, transparent 50%);
}

.auth-wrapper {
    width: 100%;
    max-width: 460px;
    animation: fadeUp .5s ease both;
}

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

/* Brand header */
.brand {
    text-align: center;
    margin-bottom: 28px;
}
.brand-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(30,58,95,.25);
}
.brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--navy);
    letter-spacing: -.3px;
}
.brand p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Card */
.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 4px 40px rgba(30,58,95,.1);
    border: 1px solid var(--border);
}
.auth-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.auth-card .subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

/* Form elements */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: #fafcff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-group input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45,106,159,.15);
    background: #fff;
}
.form-group input::placeholder { color: #b0bec5; }

/* Password wrapper */
.pw-wrapper { position: relative; }
.pw-wrapper input { padding-right: 44px; }
.pw-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; color: var(--muted); font-size: 18px;
    padding: 0; line-height: 1;
}

/* Buttons */
.btn {
    display: block; width: 100%;
    padding: 13px;
    border: none; border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    text-decoration: none; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-primary {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff;
    box-shadow: 0 4px 16px rgba(30,58,95,.3);
}
.btn-primary:hover { opacity: .92; box-shadow: 0 6px 20px rgba(30,58,95,.35); }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 10px;
}
.alert-error   { background: #fde8e8; color: #c0392b; border: 1px solid #f5c2c2; }
.alert-success { background: #e8f8ef; color: #1e8449; border: 1px solid #b7e4ca; }
.alert-info    { background: #e8f0fa; color: #1a5276; border: 1px solid #aacce8; }

/* Links */
.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--muted);
}
.auth-footer a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
    margin-top: -10px;
    margin-bottom: 20px;
}
.forgot-link:hover { text-decoration: underline; }

/* Divider */
.divider {
    display: flex; align-items: center; gap: 10px;
    margin: 20px 0; color: var(--muted); font-size: 13px;
}
.divider::before, .divider::after {
    content: ''; flex: 1;
    height: 1px; background: var(--border);
}

/* Password strength meter */
.strength-bar {
    height: 4px; border-radius: 2px;
    background: var(--border); margin-top: 6px;
    overflow: hidden;
}
.strength-fill {
    height: 100%; width: 0;
    border-radius: 2px;
    transition: width .3s, background .3s;
}
.strength-text { font-size: 12px; color: var(--muted); margin-top: 4px; }
