@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #000000;
    --primary-hover: #222222;
    --bg-dark: #fafafa;
    --glass-bg: #ffffff;
    --glass-border: #e1e1e1;
    --text-main: #000000;
    --text-muted: #666666;
    --input-bg: #ffffff;
    --input-border: #e1e1e1;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #ffffff, var(--bg-dark));
}

.ambient-bg::before, .ambient-bg::after {
    display: none !important;
}

/* ====== Container ====== */
.auth-container { 
    width: 100%; 
    max-width: 650px; 
    padding: 40px 35px; 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    border-radius: 24px; 
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
    margin: 20px auto;
}

h2 { 
    margin-bottom: 25px; 
    font-size: 28px; 
    font-weight: 800; 
    text-align: center; 
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    letter-spacing: -0.5px;
}

/* ====== Form ====== */
.auth-form .form-group { 
    margin-bottom: 20px; 
}

.auth-form label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 14px; 
    color: var(--text-muted);
}

.auth-form label.required::after { 
    content: " *"; 
    color: #dc3545; 
}

.auth-form input, 
.auth-form select, 
.auth-form textarea { 
    width: 100%; 
    padding: 14px 16px; 
    background: var(--input-bg); 
    border: 1px solid var(--input-border); 
    border-radius: 12px; 
    font-size: 16px; 
    color: #000000;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.auth-form input:focus, 
.auth-form select:focus, 
.auth-form textarea:focus { 
    border-color: var(--primary); 
    outline: none; 
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); 
}

/* Styling select dropdown options */
.auth-form select option {
    background-color: #ffffff;
    color: #000000;
}

.auth-form .checkbox { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-top: 15px; 
    cursor: pointer; 
}

.auth-form .checkbox input { 
    width: 18px; 
    height: 18px; 
    accent-color: var(--primary); 
    cursor: pointer;
}

.auth-form .checkbox label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

/* ====== Buttons ====== */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: 100%; 
    padding: 16px; 
    border-radius: 12px; 
    border: none; 
    font-size: 18px; 
    font-weight: 700; 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    margin-top: 15px; 
    font-family: inherit;
    text-decoration: none;
}

.btn:active { 
    transform: scale(0.98); 
}

.btn-primary { 
    background: #000000 !important; 
    color: #ffffff !important; 
    box-shadow: none !important;
}

.btn-primary:hover { 
    background: #222222 !important; 
    box-shadow: none !important;
    opacity: 1;
}

.btn-secondary { 
    background: #ffffff !important; 
    color: #000000 !important; 
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: #f5f5f5 !important;
    opacity: 1;
}

/* ====== Alerts ====== */
.alert { 
    padding: 14px 16px; 
    border-radius: 12px; 
    margin-bottom: 20px; 
    font-size: 14px; 
    line-height: 1.5; 
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-error { 
    background: rgba(220, 53, 69, 0.05); 
    color: #dc3545; 
    border-color: rgba(220, 53, 69, 0.1); 
}

.alert-success { 
    background: rgba(40, 167, 69, 0.05); 
    color: #28a745; 
    border-color: rgba(40, 167, 69, 0.1); 
}

.alert-info {
    background: rgba(23, 162, 184, 0.05);
    color: #17a2b8;
    border-color: rgba(23, 162, 184, 0.1);
}

/* ====== Extras ====== */
.auth-extra { 
    margin-top: 25px; 
    text-align: center; 
    font-size: 14px; 
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.auth-extra p { 
    margin-bottom: 12px; 
}

.auth-extra a { 
    color: var(--primary) !important; 
    text-decoration: underline !important; 
    font-weight: 600; 
    transition: color 0.2s; 
}

.auth-extra a:hover { 
    color: #222222 !important; 
}

.section-title { 
    font-size: 16px; 
    font-weight: 700; 
    margin: 30px 0 15px; 
    color: var(--text-main); 
    padding-bottom: 8px; 
    border-bottom: 1px solid var(--glass-border); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.form-col { 
    flex: 1; 
    min-width: 200px; 
}

/* ====== Mobile ====== */
@media (max-width: 768px) {
    body { 
        padding: 0; 
        background: var(--bg-dark); 
    }
    
    .auth-container { 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important; 
        padding: 30px 20px !important; 
        border-radius: 0 !important; 
        border: none !important;
        box-shadow: none !important; 
        min-height: 100vh !important; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
    }
    
    .form-row { 
        flex-direction: column; 
        gap: 0; 
    }
    
    .form-col { 
        width: 100%; 
        margin-bottom: 15px; 
    }
    
    h2 { 
        font-size: 24px; 
        margin-bottom: 30px; 
    }
}

/* iOS/Android tweaks */
@supports (-webkit-touch-callout: none) { 
    .auth-form input, 
    .auth-form select { 
        font-size: 16px; 
    } 
}