/**
 * Developer: amirhossinbanavand
 * Website: banclub.ir
 */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-purple);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    top: -100px;
    right: -100px;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-purple);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    bottom: -50px;
    left: -50px;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(20px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

.login-glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(142,45,226,0.2), rgba(74,0,224,0.2));
    border: 1px solid rgba(142,45,226,0.4);
    border-radius: 20px;
    margin: 0 auto 20px auto;
    color: var(--primary-purple);
    transform: rotate(-10deg);
    transition: transform 0.3s;
}

.login-glass-panel:hover .login-logo {
    transform: rotate(0deg) scale(1.05);
}

.login-logo svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.login-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--text-main);
    letter-spacing: 1px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

.login-alert {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid rgba(255, 75, 75, 0.3);
    color: var(--danger);
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.login-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px 45px 16px 16px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-input:focus {
    border-color: var(--primary-purple);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(142, 45, 226, 0.2);
}

.login-input:focus + .input-icon {
    color: var(--primary-purple);
}

.btn-login {
    width: 100%;
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(142, 45, 226, 0.4);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(142, 45, 226, 0.6);
}

.btn-login svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 480px) {
    .login-glass-panel {
        padding: 40px 25px;
        margin: 20px;
    }
}