/* ==========================================
   AUTH PAGES - LOGIN & REGISTER
   HenschTech3D
   ========================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.auth-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-medium);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

.auth-box-large {
    max-width: 600px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert-icon {
    font-size: 1.2rem;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Form */
.auth-form {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.9rem;
}

.required {
    color: #e53e3e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 0.85rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #2d3748;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Links */
.link-primary {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: #764ba2;
    text-decoration: underline;
}

.link-secondary {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: #667eea;
}

/* Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

/* Demo section */
.auth-demo {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed #cbd5e0;
}

.demo-info {
    text-align: center;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1rem;
}

.demo-credentials {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.demo-credentials p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.demo-credentials strong {
    color: #2d3748;
}

/* Dark theme */
html.dark-theme .auth-box {
    background: #1a202c;
    box-shadow: 0 20px 60px var(--shadow-medium);
}

html.dark-theme .form-group label {
    color: #e2e8f0;
}

html.dark-theme .form-group input {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

html.dark-theme .form-group input:focus {
    background: #2d3748;
    border-color: #667eea;
}

html.dark-theme .checkbox-label {
    color: #e2e8f0;
}

html.dark-theme .auth-footer {
    border-color: #4a5568;
}

html.dark-theme .auth-divider::before {
    background: #4a5568;
}

html.dark-theme .demo-credentials {
    background: #2d3748;
    border-color: #4a5568;
}

html.dark-theme .demo-credentials p {
    color: #cbd5e0;
}

html.dark-theme .demo-credentials strong {
    color: #f7fafc;
}

html.dark-theme .auth-demo {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #4a5568;
}

html.dark-theme .demo-info {
    color: #f7fafc;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-box {
        padding: 30px 25px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 60px 15px 20px;
    }
    
    .auth-box {
        padding: 25px 20px;
    }
}
