/* assets/css/auth.css - Authentication pages styles */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1000px;
    margin: 2rem auto;
    align-items: start;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(59, 130, 246, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
    font-size: 1.05rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-error ul {
    margin: 0.5rem 0 0 1.5rem;
}

.alert-error li {
    margin-bottom: 0.3rem;
}

.alert-success {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #065f46;
}

/* Form */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group a {
    color: #2563eb;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    width: auto;
}

.forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
}

.form-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-social:hover:not(:disabled) {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-google span {
    font-weight: bold;
    font-size: 1.2rem;
    color: #4285f4;
}

/* Auth Benefits Sidebar */
.auth-benefits {
    background: linear-gradient(135deg, #f0f9ff, #dbeafe);
    padding: 2rem;
    border-radius: 15px;
    position: sticky;
    top: 100px;
}

.auth-benefits h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
}

.auth-benefits li {
    padding: 0.75rem 0;
    color: #475569;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.auth-benefits li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .auth-benefits {
        position: static;
    }
}