﻿:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #7209b7;
    --text-color: #2b2d42;
    --light-text: #8d99ae;
    --border-color: #e9ecef;
    --error-color: #ef233c;
    --success-color: #2ecc71;
    --bg-color: #f8f9fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    display: flex;
    height: 100vh;
    color: var(--text-color);
    overflow: hidden;
}

.hero-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        top: -50%;
        left: -50%;
        background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
        opacity: 0.15;
        transform: rotate(5deg);
    }

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slogan {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 80%;
    z-index: 1;
    line-height: 1.6;
}

.home-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .home-btn:hover {
        background-color: rgba(255,255,255,0.3);
        transform: translateY(-2px);
    }

    .home-btn i {
        font-size: 1rem;
    }

.auth-container {
    width: 450px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--light-text);
    position: relative;
}

    .auth-tab.active {
        color: var(--primary-color);
    }

        .auth-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            height: 3px;
            background-color: var(--primary-color);
            border-radius: 3px 3px 0 0;
        }

    .auth-tab:hover:not(.active) {
        background-color: rgba(67, 97, 238, 0.05);
    }

.auth-content {
    padding: 2.5rem;
    overflow-y: auto;
    height: calc(100vh - 60px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .auth-header h2 {
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--text-color);
    }

    .auth-header p {
        color: var(--light-text);
        font-size: 0.9rem;
    }

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--text-color);
        font-weight: 500;
        font-size: 0.9rem;
    }

    .form-group input {
        width: 100%;
        padding: 0.875rem 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 0.9rem;
        transition: all 0.3s;
        background-color: var(--bg-color);
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
            background-color: var(--white);
        }

    .form-group .error-message {
        color: var(--error-color);
        font-size: 0.75rem;
        margin-top: 0.5rem;
        display: none;
    }

    .form-group.error input {
        border-color: var(--error-color);
    }

    .form-group.error .error-message {
        display: block;
    }

    .form-group.success input {
        border-color: var(--success-color);
    }

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

    .forgot-password a {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 500;
    }

        .forgot-password a:hover {
            text-decoration: underline;
        }

.auth-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.1);
}

    .auth-button:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(67, 97, 238, 0.15);
    }

    .auth-button:active {
        transform: translateY(0);
    }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

    .auth-footer a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

.auth-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .auth-form.active {
        display: block;
    }

.password-strength {
    height: 4px;
    background-color: var(--border-color);
    margin-top: 0.5rem;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background-color: var(--error-color);
    transition: all 0.3s;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    cursor: pointer;
    color: var(--light-text);
    font-size: 0.8rem;
    user-select: none;
    font-weight: 500;
}

.error-message {
    color: var(--error-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: auto;
    }

    .hero-section {
        padding: 1.5rem;
        min-height: 200px;
    }

    .logo {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .slogan {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .auth-container {
        width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
    }

    .auth-content {
        padding: 1.5rem;
        height: auto;
    }

    .home-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
    }
}

.successMsg {
    color: green !important;
    display: block !important;
}
