﻿/* ============================================
   TOONUTS - Login Page Styles
   ============================================ */

:root {
    --copper: #B8956A;
    --dark-copper: #A67C52;
    --beige: #F5EFE7;
    --mint: #7FDBCA;
    --dark-mint: #5BC0B0;
    --dark: #2C2416;
    --gray: #6B6B6B;
    --white: #FFFFFF;
    --error: #e74c3c;
    --success: #27ae60;
}

/* Login Wrapper */
.login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--beige) 0%, #FFFFFF 50%, var(--beige) 100%);
    position: relative;
    overflow: hidden;
}

    .login-wrapper::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(127, 219, 202, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .login-wrapper::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(184, 149, 106, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

/* Login Container */
.login-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* ============================================
   LEFT SIDE - BRANDING
   ============================================ */

.login-branding {
    background: linear-gradient(135deg, var(--dark) 0%, #3d3020 100%);
    padding: 60px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

    .login-branding::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(127,219,202,0.1)"/></svg>');
        opacity: 0.3;
    }

.branding-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

    .brand-logo .logo-icon {
        width: 50px;
        height: 50px;
    }

        .brand-logo .logo-icon svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 5px 15px rgba(127, 219, 202, 0.3));
        }

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.login-branding h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.brand-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 219, 202, 0.1);
    border-radius: 15px;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.feature-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================
   RIGHT SIDE - FORM
   ============================================ */

.login-form-container {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-content {
    max-width: 400px;
    width: 100%;
}

.form-header {
    margin-bottom: 35px;
}

    .form-header h2 {
        font-size: 2rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 10px;
    }

    .form-header p {
        color: var(--gray);
        font-size: 1rem;
    }

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
}

    .alert svg {
        flex-shrink: 0;
    }

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--dark);
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--gray);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

    .input-wrapper input:focus {
        outline: none;
        border-color: var(--copper);
        box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.1);
    }

    .input-wrapper input::placeholder {
        color: #bbb;
    }

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: var(--copper);
    }

/* ============================================
   FORM OPTIONS
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--copper);
    }

.checkbox-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--copper);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .forgot-link:hover {
        color: var(--dark-copper);
    }

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.btn-login-submit {
    margin-top: 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--copper) 0%, var(--dark-copper) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.3);
}

    .btn-login-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(184, 149, 106, 0.4);
    }

    .btn-login-submit:active {
        transform: translateY(0);
    }

    .btn-login-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

/* ============================================
   DIVIDER & ALTERNATIVE ACTIONS
   ============================================ */

.form-divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

    .form-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e0e0e0;
    }

    .form-divider span {
        position: relative;
        background: var(--white);
        padding: 0 15px;
        color: var(--gray);
        font-size: 0.9rem;
    }

.alternative-actions {
    text-align: center;
}

.signup-text {
    color: var(--gray);
    font-size: 0.95rem;
}

.signup-link {
    color: var(--copper);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .signup-link:hover {
        color: var(--dark-copper);
    }

/* ============================================
   HELP SECTION
   ============================================ */

.help-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

    .help-section p {
        color: var(--gray);
        font-size: 0.9rem;
    }

    .help-section a {
        color: var(--copper);
        text-decoration: none;
        font-weight: 500;
    }

        .help-section a:hover {
            text-decoration: underline;
        }

/* ============================================
   ERROR MESSAGES
   ============================================ */

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-branding {
        padding: 40px;
    }

        .login-branding h1 {
            font-size: 2rem;
        }

    .features-list {
        display: none;
    }

    .login-form-container {
        padding: 40px;
    }

    .login-form-content {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .login-wrapper {
        padding: 20px 10px;
    }

    .login-container {
        border-radius: 20px;
    }

    .login-branding {
        padding: 30px 20px;
    }

    .brand-logo {
        margin-bottom: 20px;
    }

        .brand-logo .logo-icon {
            width: 40px;
            height: 40px;
        }

    .brand-name {
        font-size: 1.5rem;
    }

    .login-branding h1 {
        font-size: 1.75rem;
    }

    .brand-description {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .login-form-container {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .input-wrapper input {
        padding: 13px 13px 13px 43px;
    }

    .btn-login-submit {
        padding: 14px 25px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 10px 5px;
    }

    .login-branding {
        padding: 25px 15px;
    }

    .login-form-container {
        padding: 25px 15px;
    }
}
