:root {
    --primary: #7B2D26;
    --secondary: #F4C542;
    --accent1: #E67E22;
    --accent2: #2980B9;
    --accent3: #27AE60;
    --bg-offwhite: #FAF9F6;
    --bg-sky: #EAF6FB;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --card-bg: #FFFFFF;
    --shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    --sale: #E94343;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.w-45{
    width: 35%;
}

body {
    background-color: var(--bg-offwhite);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image:
        radial-gradient(circle at 5% 10%, rgba(123, 45, 38, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 95% 10%, rgba(244, 197, 66, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 90%, rgba(230, 126, 34, 0.05) 0%, transparent 20%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 20px 30px;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 5px 15px rgba(123, 45, 38, 0.3);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: #777;
    font-size: 14px;
}

.auth-form {
    /* margin-bottom: 20px; */
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.auth-form.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    color: #555;
}

.input-group {
    position: relative;
}

.form-control {
    padding: 16px 20px 16px 48px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    width: 100%;
    font-size: 15px;
    transition: all 0.3s;
    height: 52px;
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.15);
    background: white;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    z-index: 2;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    margin-top: 0;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.forgot-link:hover {
    color: var(--accent1);
    text-decoration: underline;
}

.btn-auth {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(123, 45, 38, 0.25);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(123, 45, 38, 0.3);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #eee;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #777;
    font-size: 14px;
}

.social-auth {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #555;
    font-size: 18px;
    transition: all 0.3s;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fb-btn:hover {
    background: #3b5998;
    color: white;
}

.google-btn:hover {
    background: #dd4b39;
    color: white;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #777;
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-link:hover {
    color: var(--accent1);
    text-decoration: underline;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 5px;
}

.auth-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    font-size: 16px;
    border-radius: 10px;
}

.auth-tab.active {
    color: var(--primary);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form container with height adjustment */
.form-container {
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease;
}

/* Animation for input focus */
.form-control:focus+.input-icon {
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-container {
        padding: 25px 20px;
    }

    .auth-tab {
        padding: 10px 15px;
        font-size: 15px;
    }

    .auth-title {
        font-size: 22px;
    }

    .form-control {
        padding: 14px 16px 14px 44px;
        height: 50px;
    }

    .btn-auth {
        height: 50px;
        font-size: 15px;
    }

    .logo-circle {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    .auth-container {
        padding: 20px 15px;
    }

    .auth-tab {
        padding: 8px 12px;
        font-size: 14px;
    }

    .auth-title {
        font-size: 20px;
    }

    .form-control {
        padding: 12px 14px 12px 42px;
        height: 48px;
        font-size: 14px;
    }

    .btn-auth {
        height: 48px;
        font-size: 14px;
    }

    .social-btn {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}