/* ============================================================
   Authentication Pages - Dynamic & Attractive Design
   Red Primary, Black Text, Light Grey Accents
   ============================================================ */

:root {
    --wadai-red: #d90217;
    --wadai-red-dark: #a60112;
    --wadai-red-soft: rgba(217, 2, 23, 0.08);
    --wadai-red-medium: rgba(217, 2, 23, 0.12);
    --wadai-text-black: #000000;
    --wadai-text-gray: #6c757d;
    --wadai-light-grey: #e9ecef;
    --wadai-bg-light: #f8f9fa;
}

/* ========== AUTH SECTION ========== */
.auth-hero {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 4rem 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Auth Card */
.glass-card {
    background: white;
    border-radius: 28px;
    border: 2px solid var(--wadai-light-grey);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    box-shadow: 0 20px 60px rgba(217, 2, 23, 0.12);
    border-color: var(--wadai-red-soft);
    transform: translateY(-8px);
}

/* Auth Header Icon */
.auth-header-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(217, 2, 23, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.auth-header-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(217, 2, 23, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(217, 2, 23, 0.4);
    }
}

/* Audience Toggle */
.auth-audience-toggle {
    background: linear-gradient(180deg, #ffffff 0%, var(--wadai-bg-light) 100%);
    padding: 0.75rem;
    border-radius: 16px;
    border: 2px solid var(--wadai-light-grey);
}

.toggle-group {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background: transparent;
    gap: 0.5rem;
    display: flex;
}

.toggle-group .btn-check {
    display: none;
}

.toggle-group .btn-outline-brand {
    flex: 1;
    border: 2px solid var(--wadai-light-grey);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--wadai-text-black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
}

.toggle-group .btn-outline-brand i {
    font-size: 1.25rem;
}

.toggle-group .btn-outline-brand span {
    font-weight: 700;
    font-size: 1rem;
}

.toggle-group .btn-check:checked + .btn-outline-brand {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: white;
    border-color: var(--wadai-red);
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.3);
    transform: translateY(-2px);
}

.toggle-group .btn-outline-brand:hover {
    background: var(--wadai-red-soft);
    color: var(--wadai-red);
    border-color: var(--wadai-red-soft);
    transform: translateY(-1px);
}

.toggle-group .btn-check:checked + .btn-outline-brand:hover {
    background: linear-gradient(135deg, var(--wadai-red-dark) 0%, var(--wadai-red) 100%);
    color: white;
    border-color: var(--wadai-red);
}

/* Badge */
.auth-hero .badge {
    background: rgba(217, 2, 23, 0.1) !important;
    border: 1px solid rgba(217, 2, 23, 0.2);
    color: var(--wadai-red) !important;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.25rem;
}

/* Headings */
.auth-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--wadai-text-black) !important;
    margin-bottom: 0.5rem;
}

.auth-hero .text-muted {
    color: var(--wadai-text-gray) !important;
    font-size: 1rem;
}

/* Form Elements */
.form-label {
    font-weight: 700;
    color: var(--wadai-text-black) !important;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--wadai-red);
    margin-right: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--wadai-light-grey);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--wadai-text-black);
}

.form-control::placeholder {
    color: var(--wadai-text-gray);
    opacity: 0.6;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--wadai-red);
    box-shadow: 0 0 0 0.25rem rgba(217, 2, 23, 0.15);
    outline: none;
    background: white;
}

.input-group-text {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: white;
    border: 2px solid var(--wadai-red);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.input-group .form-control:focus {
    border-left: 2px solid var(--wadai-red);
}

.input-glow:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 2, 23, 0.15);
}


/* Buttons */
.btn-brand {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.25);
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--wadai-red-dark) 0%, var(--wadai-red) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 2, 23, 0.35);
}

.btn-brand:active {
    transform: translateY(0);
}

.shadow-brand {
    box-shadow: 0 6px 20px rgba(217, 2, 23, 0.3) !important;
}

/* Social Login Buttons */
.btn-social {
    border: 2px solid var(--wadai-light-grey);
    border-radius: 14px;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.btn-social i {
    font-size: 1.25rem;
}

.btn-social span {
    font-size: 0.95rem;
}

.btn-google {
    color: #4285f4;
    border-color: #4285f4;
}

.btn-google:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

.btn-apple {
    color: var(--wadai-text-black);
    border-color: var(--wadai-text-black);
}

.btn-apple:hover {
    background: var(--wadai-text-black);
    color: white;
    border-color: var(--wadai-text-black);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--wadai-light-grey), transparent);
}

.divider-text {
    color: var(--wadai-text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Form Check */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--wadai-light-grey);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--wadai-red);
    border-color: var(--wadai-red);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 2, 23, 0.15);
}

.form-check-label {
    color: var(--wadai-text-gray);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-check-label a {
    color: var(--wadai-red);
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Links */
.link-danger {
    color: var(--wadai-red) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.link-danger:hover {
    text-decoration: underline;
    color: var(--wadai-red-dark) !important;
}

.text-brand {
    color: var(--wadai-red) !important;
}

.text-brand:hover {
    color: var(--wadai-red-dark) !important;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(217, 2, 23, 0.1);
    color: var(--wadai-red);
    border-left: 4px solid var(--wadai-red);
}

/* Modal */
.modal-content {
    border-radius: 20px;
    border: 2px solid var(--wadai-light-grey);
}

.modal-header {
    border-bottom: 2px solid var(--wadai-light-grey);
}

.modal-footer {
    border-top: 2px solid var(--wadai-light-grey);
}

.modal-title {
    color: var(--wadai-text-black) !important;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .auth-hero .col-xl-8 {
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .auth-hero {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .auth-hero h1 {
        font-size: 1.75rem;
    }
    
    .glass-card {
        border-radius: 20px;
    }
    
    .auth-header-icon {
        width: 70px;
        height: 70px;
    }
    
    .auth-header-icon i {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .auth-hero {
        padding: 2rem 0;
    }
    
    .auth-hero h1 {
        font-size: 1.5rem;
    }
    
    .btn-brand {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .toggle-group .btn-outline-brand {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .auth-header-icon {
        width: 60px;
        height: 60px;
    }
    
    .auth-header-icon i {
        font-size: 1.75rem;
    }
    
    .btn-social {
        min-width: 120px;
        padding: 0.75rem 1.25rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate__fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate__fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

