@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --auth-primary: #EE4D4D;
    --auth-secondary: #2d3436;
    --auth-bg: #f8f9fd;
    --auth-text: #636e72;
    --auth-white: #ffffff;
    --auth-border: #f1f3f5;
}

body {
    background-color: var(--auth-bg) !important;
    font-family: 'Outfit', sans-serif !important;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side: Illustration / Branding */
.auth-brand-side {
    flex: 1;
    background-color: var(--auth-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: var(--auth-white);
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before,
.auth-brand-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.auth-brand-side::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.auth-brand-side::after {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: -50px;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 500px;
}

.auth-brand-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #fff !important;
}

.auth-brand-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #fff !important;
}

/* Right Side: Form */
.auth-form-side {
    flex: 1;
    background-color: var(--auth-white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo img {
    max-height: 50px;
    width: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--auth-secondary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--auth-text);
    font-size: 1rem;
}

/* Form Styling */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--auth-secondary);
    margin-bottom: 8px;
}

.auth-form label span {
    color: var(--auth-primary);
}

.auth-form .form-control,
.auth-form .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 0 16px !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background-color: #fcfcfc !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
}

.auth-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: normal !important;
    color: var(--auth-secondary) !important;
}

.auth-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    height: auto !important;
}

.auth-form .form-control:focus {
    outline: none !important;
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 3px rgba(238, 77, 77, 0.1) !important;
    background-color: var(--auth-white) !important;
}

.auth-form .password-field {
    position: relative;
}

.auth-form .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    height: 50px !important;
}

.auth-form .input-group-text {
    background-color: var(--auth-primary) !important;
    border: 1px solid var(--auth-primary) !important;
    color: #fff !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px 0 0 8px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    height: 100% !important;
}

.auth-form .input-group .form-control {
    flex: 1 1 auto !important;
    width: 1% !important;
    border-radius: 0 8px 8px 0 !important;
    height: 100% !important;
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.auth-meta .forgot-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--auth-primary);
    color: var(--auth-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.auth-btn:hover {
    background-color: #d63d3d;
    color: #fff;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: var(--auth-text);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--auth-text);
}

.auth-footer a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Responsiveness */
@media (max-width: 991px) {
    .auth-brand-side {
        display: none;
    }

    .auth-form-side {
        padding: 20px;
    }
    
    .auth-logo {
        margin-bottom: 15px;
    }

    .auth-logo img {
        max-height: 40px;
    }
}

.country-code .input-group-text{
    background: #fff !important;
}
.country-code select{
    border: none;
}
.country-code select:focus{
    border: none;
    outline: none;
}

/* Social Login Buttons */
.auth-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--auth-text);
}
.auth-social-divider::before,
.auth-social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}
.auth-social-divider span {
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid var(--auth-border);
    background: #fff;
    color: var(--auth-secondary);
    cursor: pointer;
}
.btn-social:hover {
    border-color: #d0d0d0;
    background: #fafafa;
    color: var(--auth-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.btn-social svg {
    flex-shrink: 0;
}

/* Logout Link */
.btn-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-text);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1.5px solid var(--auth-border);
    transition: all 0.25s ease;
}
.btn-logout-link:hover {
    color: var(--auth-primary);
    border-color: var(--auth-primary);
    background: rgba(238, 77, 77, 0.05);
}

/* Google Login Button Custom Design */
#google-login-btn, #google-signup-btn {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 2px solid #d3d3d3;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 10px 20px;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: none;
    justify-content: center;
}

#google-login-btn:hover, #google-signup-btn:hover {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#google-login-btn svg, #google-signup-btn svg {
    width: 24px;
    height: 24px;
}
