﻿/* PERFECTTIO Login Page - Orange & Black Theme */

:root {
    --orange-primary: #ff6b35;
    --orange-light: #ff8c61;
    --orange-dark: #e55a2b;
    --black-bg: #0a0a0a;
    --black-card: #1a1a1a;
    --black-input: #151515;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --border-color: rgba(255, 107, 53, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== LOGIN SECTION ========== */

.login-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-bg);
    padding: 2rem;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--orange-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--orange-light);
    bottom: 15%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--orange-dark);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

/* ========== LOGIN CONTAINER ========== */

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: var(--black-card);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(255, 107, 53, 0.1);
}

/* ========== BRAND ========== */

.login-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
}

    .brand-logo::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
        border-radius: 20px;
        z-index: -1;
        filter: blur(10px);
        opacity: 0.5;
    }

    .brand-logo span {
        font-size: 3rem;
        font-weight: 900;
        color: var(--text-white);
    }

.login-brand h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.login-brand p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ========== FORM HEADER ========== */

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

    .form-header h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--text-white);
        margin-bottom: 0.5rem;
    }

    .form-header p {
        color: var(--text-gray);
        font-size: 0.9rem;
    }

/* ========== FORM ========== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .input-group label {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-white);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .input-group label i {
            color: var(--orange-primary);
            font-size: 1rem;
        }

    .input-group input {
        width: 100%;
        padding: 0.875rem 1rem;
        background: var(--black-input);
        border: 2px solid rgba(255, 107, 53, 0.2);
        border-radius: 12px;
        color: var(--text-white);
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .input-group input:focus {
            outline: none;
            border-color: var(--orange-primary);
            background: var(--black-bg);
            box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
        }

        .input-group input::placeholder {
            color: var(--text-gray);
        }

    .input-group.focused input {
        border-color: var(--orange-primary);
    }

/* ========== PASSWORD ========== */

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 3rem;
    }

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: var(--orange-primary);
    }

    .toggle-password i {
        font-size: 1.1rem;
    }

/* ========== FORM OPTIONS ========== */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--orange-primary);
    }

    .checkbox-label span {
        color: var(--text-gray);
        font-size: 0.875rem;
    }

.forgot-link {
    color: var(--orange-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

    .forgot-link:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

/* ========== SUBMIT BUTTON ========== */

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
    border: none;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn i {
        transition: transform 0.3s ease;
    }

    .submit-btn:hover i {
        transform: translateX(4px);
    }

/* ========== DIVIDER ========== */

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0 1.5rem;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        background: rgba(255, 107, 53, 0.2);
    }

    .divider span {
        position: relative;
        background: var(--black-card);
        padding: 0 1rem;
        color: var(--text-gray);
        font-size: 0.875rem;
    }

/* ========== REGISTER SECTION ========== */

.register-section {
    text-align: center;
}

    .register-section p {
        color: var(--text-gray);
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

.register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid var(--orange-primary);
    border-radius: 12px;
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .register-btn:hover {
        background: var(--orange-primary);
        color: var(--text-white);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }

    .register-btn i {
        transition: transform 0.3s ease;
    }

    .register-btn:hover i {
        transform: translateX(4px);
    }

/* ========== VALIDATION ========== */

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 640px) {
    .login-section {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .brand-logo {
        width: 70px;
        height: 70px;
    }

        .brand-logo span {
            font-size: 2.5rem;
        }

    .login-brand h1 {
        font-size: 1.75rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 1.5rem 1rem;
    }

    .submit-btn,
    .register-btn {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
}
