/* Auth Page Common Styles - CVswork */

/* Hide background image for auth pages */
.auth-page .bg-image {
    display: none !important;
}

.auth-page .hero-section {
    background: #f8fafc !important;
    min-height: auto !important;
}

/* Auth Page Specific Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-container {
    width: 100%;
    max-width: 520px;
    min-width: 420px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .auth-container {
        min-width: auto;
    }
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem 2.5rem;
}

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

.auth-title {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .form-control,
.auth-form .custom-select,
.auth-form textarea.form-control {
    width: 100%;
    padding: 0.75rem 1rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    color: #0f172a !important;
    font-size: 0.95rem !important;
    transition: all 0.3s;
    height: auto !important;
}

.auth-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.auth-form .form-control:focus,
.auth-form .custom-select:focus,
.auth-form textarea.form-control:focus {
    background: white !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none;
}

.auth-form .form-control::placeholder {
    color: #94a3b8;
}

.auth-form .custom-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    padding-right: 2.5rem !important;
}

.forgot-link {
    display: block;
    text-align: right;
    color: #2563eb;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.btn-auth-primary {
    width: 100%;
    background: #2563eb;
    color: white !important;
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn-auth-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer-text {
    color: #64748b;
    font-size: 0.875rem;
}

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Override landing page main-content for auth pages */
.auth-page .main-content {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: 100vh;
}

/* Two column form layout for registration */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}
