﻿:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: auto;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    width: 420px;
    max-width: 90%;
    transition: all 0.5s ease;
    min-height: auto;
    margin: 40px 0;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( to bottom right, transparent, transparent, transparent, var(--accent) );
    transform: rotate(30deg);
    animation: animate 6s linear infinite;
    z-index: -1;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 50px;
    color: var(--accent);
    margin-bottom: 15px;
    display: inline-block;
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 300;
}

.input-group input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(247, 37, 133, 0.3);
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--accent);
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.signup-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.signup-link a:hover {
    text-decoration: underline;
}

.password-recovery-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.recovery-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    width: 420px;
    max-width: 90%;
    position: absolute;
    top: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recovery-header {
    text-align: center;
    margin-bottom: 30px;
}

    .recovery-header i {
        font-size: 50px;
        color: #f72585;
        margin-bottom: 15px;
        display: inline-block;
    }

    .recovery-header h2 {
        font-size: 24px;
        font-weight: 600;
        color: white;
        margin-bottom: 10px;
    }

    .recovery-header p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
    }

.recovery-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

    .recovery-steps::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(255, 255, 255, 0.2);
        z-index: 1;
    }

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

    .step.active {
        background: #4361ee;
        color: white;
    }

    .step.completed {
        background: #4cc9f0;
        color: white;
    }

.step-content {
    display: none;
}

    .step-content.active {
        display: block;
    }

.recovery-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.recovery-input:focus {
    outline: none;
    border-color: #f72585;
    box-shadow: 0 0 10px rgba(247, 37, 133, 0.3);
}

.recovery-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.recovery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.recovery-btn:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

.recovery-back {
    text-align: center;
    margin-top: 20px;
}

    .recovery-back a {
        color: #f72585;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .recovery-back a:hover {
            text-decoration: underline;
        }

.verification-code-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.verification-code-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

    .verification-code-input:focus {
        outline: none;
        border-color: #f72585;
        box-shadow: 0 0 10px rgba(247, 37, 133, 0.3);
    }

.countdown {
    text-align: center;
    color: #f72585;
    margin-bottom: 20px;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

    .input-group input {
        width: 100%;
        padding: 15px 45px 15px 45px; 
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: white;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .input-group .fa-lock {
        position: absolute;
        left: 15px;
        top: 40px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 18px;
    }

    .input-group .toggle-password {
        position: absolute;
        right: 15px;
        top: 40px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 18px;
        cursor: pointer;
        z-index: 2;
        left: auto;
    }

        .input-group .toggle-password:hover {
            color: #fff;
        }

    .input-group input:-webkit-autofill,
    .input-group input:-webkit-autofill:hover,
    .input-group input:-webkit-autofill:focus,
    .input-group input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
        -webkit-text-fill-color: white !important;
        transition: background-color 5000s ease-in-out 0s;
    }