/* 
* Auth Page Custom CSS
* Version: 1.0.0
* Compatible with Menustry Design System
*/

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #1a1a2e;
    --light-color: #f7f7f7;
    --text-color: #333;
    --text-light: #777;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #ff8a80 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #80cbc4 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-color) 0%, #2a2a5a 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--gradient-dark);
    min-height: 100vh;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: var(--secondary-color);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    background: var(--primary-color);
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Main Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Brand Side */
.brand-side {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="10" cy="60" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="90" cy="40" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.brand-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.brand-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo i {
    color: var(--primary-color);
    margin-right: 15px;
}

.brand-info h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.brand-info p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

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

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

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

/* Auth Side */
.auth-side {
    background: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
}

/* Mobile Brand Header */
.mobile-brand {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.mobile-brand h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.mobile-brand i {
    color: var(--primary-color);
    margin-right: 10px;
}

.mobile-brand p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Auth Toggle */
.auth-toggle {
    display: flex;
    background: var(--light-color);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 2rem;
    position: relative;
}

.toggle-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.toggle-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.toggle-btn i {
    margin-right: 8px;
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.auth-form.active {
    display: block;
}

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

.form-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    z-index: 6;
    color: var(--text-light);
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.input-group:focus-within .input-icon {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 6;
}

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

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e1e1e1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.terms-link:hover {
    color: var(--secondary-color);
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
}

.auth-btn i {
    margin-right: 8px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e1e1;
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    background: var(--white);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-btn:hover {
    border-color: #db4437;
    color: #db4437;
    background: rgba(219, 68, 55, 0.05);
}

.facebook-btn:hover {
    border-color: #4267B2;
    color: #4267B2;
    background: rgba(66, 103, 178, 0.05);
}

.btn-social i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Back to Home */
.back-to-home {
    text-align: center;
    margin-top: 2rem;
}

.home-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.home-link:hover {
    color: var(--primary-color);
}

.home-link i {
    margin-right: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: var(--white);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Modal */
.success-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .brand-content {
        padding: 40px;
    }

    .brand-logo h1 {
        font-size: 2.5rem;
    }

    .brand-info h2 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

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

    .auth-side {
        min-height: 100vh;
        padding: 1rem;
    }

    .mobile-brand {
        padding: 1rem 0;
    }
}

@media (max-width: 767px) {
    .auth-wrapper {
        max-width: 100%;
    }

    .mobile-brand h2 {
        font-size: 1.8rem;
    }

    .form-header h3 {
        font-size: 1.8rem;
    }

    .social-login {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 0.8rem;
    }
}

@media (max-width: 575px) {
    .auth-side {
        padding: 0.5rem;
    }

    .toggle-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 12px 12px 12px 45px;
    }

    .auth-btn {
        padding: 12px;
        font-size: 1rem;
    }

    .mobile-brand h2 {
        font-size: 1.5rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .brand-side::before {
        background-size: 50px 50px;
    }
}

/* Dark Mode Support */
/* @media (prefers-color-scheme: dark) {
    body {
        background: var(--dark-color);
        color: var(--white);
    }
    .form-header h3,
    .form-header p {
        color: var(--white);
    }
    .auth-side {
        background: var(--dark-color);
    }
    .brand-side {
        background: var(--gradient-dark);
    }
    .form-control {
        background: #232347;
        border-color: #555;
        color: var(--white);
        caret-color: var(--primary-color);
    }
    .form-control::placeholder {
        color: #bbb;
        opacity: 1;
    }
    .input-group:focus-within .input-icon {
        color: var(--primary-color);
    }
    .input-icon {
        color: #bbb;
    }
    .password-toggle {
        color: #bbb;
    }
    .input-group:focus-within .password-toggle {
        color: var(--primary-color);
    }
    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25);
        background: #232347;
        color: var(--white);
    }
    .auth-btn {
        background: var(--gradient-primary);
        color: var(--white);
    }
    .forgot-password,
    .terms-link,
    .home-link {
        color: var(--secondary-color);
    }
} */
/* Print Styles */
@media print {

    .bg-animation,
    .loading-overlay {
        display: none !important;
    }

    .auth-container {
        background: white !important;
    }
}

.input-group .form-control {
    border-radius: 12px !important;
}

.input-group .password-toggle {
    background: transparent;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
}