/* ===================================
   Frontend Signup & Login
   Based on Admin Login Design
   =================================== */

/* Root Variables */
:root {
    --primary-color: #282056;
    --accent-color: #ef3093;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1640 100%);
    min-height: calc(100vh - 150px); /* Adjusting for header/footer approximately */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(239, 48, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(239, 48, 147, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Login Container */
.login-container {
    max-width: 450px;
    width: 33.3%;
    position: relative;
    z-index: 1;
}

/* Login Card */
.login-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    margin: -30px -30px 20px -30px; /* pull out to edges of card padding */
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab:hover {
    color: var(--accent-color);
    background: #f1f5f9;
}

.auth-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: white;
}

/* Content */
.auth-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-content.hidden {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 25px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(239, 48, 147, 0.3);
}

.logo-circle i {
    font-size: 24px;
    color: white;
}

.logo-section h1 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.logo-section .subtitle {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: flex;
    gap: 12px;
}
.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group label i {
    color: var(--accent-color);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-light);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(239, 48, 147, 0.1);
}

/* Password Input */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--accent-color);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.forgot-link {
    font-size: 13px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 48, 147, 0.3);
}

/* Info Panel (Desktop) */
.info-panel {
    display: none;
}

/* Responsive Design */
@media (min-width: 900px) {
    .login-container {
        grid-template-columns: 450px 1fr;
        max-width: 950px;
        gap: 0;
    }

    .login-card {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .info-panel {
        display: flex;
        background: linear-gradient(135deg, rgba(40, 32, 86, 0.95) 0%, rgba(239, 48, 147, 0.95) 100%);
        border-top-right-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
        padding: 40px;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .info-panel::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .info-content {
        position: relative;
        z-index: 1;
        color: white;
        text-align: center;
    }

    .info-icon {
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .info-icon i {
        font-size: 36px;
    }

    .info-content h2 {
        font-size: 28px;
        margin-bottom: 12px;
        font-weight: 700;
    }

    .info-content p {
        font-size: 15px;
        opacity: 0.9;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .feature-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: var(--transition);
        text-align: left;
    }

    .feature-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
    }

    .feature-item i {
        font-size: 18px;
    }

    .feature-item span {
        font-size: 13px;
        font-weight: 500;
    }
}

/* ========================================
   Perks Section
   ======================================== */
.perks-section {
    padding: 60px 20px;
    background-color: #faf5f8; /* Very light pinkish hue from image */
    display: flex;
    justify-content: center;
}

.perks-container {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft, diffuse shadow */
    text-align: center;
}

.perks-container h2 {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.perk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.perk-icon {
    color: var(--accent-color);
    font-size: 42px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Adjusting multiple tag icon styling if using FontAwesome fa-tags */
.perk-icon .fa-tags {
    transform: rotate(45deg); /* Match angle of image */
}

.perk-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.perk-card p {
    color: var(--text-light); /* Assuming grey text */
    font-size: 15px;
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
}

/* Perks Responsive */
@media (max-width: 768px) {
    .perks-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .perks-container {
        padding: 40px 20px;
    }
}
