/* ============================================ */
/* AUTH.CSS */
/* ============================================ */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: url('../img/auth_bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -20px;
    margin-bottom: -20px;
    z-index: 1;
}

.auth-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 24px;
    background: var(--auth-glass-bg);
    backdrop-filter: blur(var(--auth-glass-blur));
    -webkit-backdrop-filter: blur(var(--auth-glass-blur));
    box-shadow: 0 10px 40px var(--shadow-medium);
    border: var(--auth-glass-border);
    transition: all 0.3s ease;
    color: var(--auth-text);
}

.auth-container h1 { color: var(--auth-title-color) !important; margin-bottom: 8px; }
.auth-container p { color: var(--auth-subtitle-color) !important; }
.auth-container label { color: rgba(255, 255, 255, 0.9) !important; }

.glass-panel {
    background: rgba(22, 33, 62, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(100px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .glass-panel {
    background: rgba(22, 33, 62, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-wide-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    background: var(--button-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-header p { color: var(--text-secondary); font-size: 14px; }

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--nav-active);
    box-shadow: 0 0 0 3px rgba(102, 217, 168, 0.2);
}

.auth-form textarea {
    resize: vertical;
    min-height: 120px;
}

.auth-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='gray' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
    cursor: pointer;
}

[data-theme="dark"] .auth-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.auth-form input[type="file"] {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.auth-form input[type="file"]::-webkit-file-upload-button {
    background: var(--header-gradient);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.2s ease;
}

.auth-form input[type="file"]::-webkit-file-upload-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 217, 168, 0.3);
}

.auth-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--button-gradient);
    color: var(--button-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(102, 217, 168, 0.4);
    transform: translateY(-2px);
}

.auth-footer { margin-top: 25px; text-align: center; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--nav-active); text-decoration: none; font-weight: 600; }
.help-text { display: block; font-size: 11px; color: var(--text-secondary); margin-top: 5px; }
.error-text { color: #ff4757; font-size: 12px; margin-top: 5px; }

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--auth-subtitle-color);
    margin-bottom: 8px;
    margin-left: 5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .auth-section { background: url('../img/auth_bg_mobile.png') no-repeat center center/cover; }
}