/* login.css - SwiftCore Login */

.login-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a url('/assets/auth-bg-DDsHivui.jpg') no-repeat center center;
    background-size: cover;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    z-index: 1;
}

.login-card {
    padding: 30px 25px 25px;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-header {
    text-align: center;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-header h1 .accent {
    color: #3B75FF;
}

.login-header p {
    font-size: 14px;
    color: #727278;
    margin: 0;
}

.login-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.login-form.active {
    display: flex;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
    opacity: 0.8;
}

.input-group input {
    height: 52px;
    padding: 0 16px;
    background: #18181B;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    border-color: #3B75FF;
    box-shadow: 0 0 0 3px rgba(59, 117, 255, 0.15);
}

.input-group input::placeholder {
    color: #727278;
}

.input-group input.input-error {
    border-color: #FF4444;
}

.login-btn {
    height: 52px;
    width: 100%;
    background: #3B75FF;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.login-btn:hover {
    background: #4F46E5;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    text-align: center;
    font-size: 13px;
    color: #727278;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.login-footer a {
    color: #727278;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #3B75FF;
}

.back-btn {
    background: transparent;
    border: none;
    color: #727278;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #3B75FF;
}

/* OTP */
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-input {
    width: 44px !important;
    height: 52px !important;
    text-align: center;
    font-size: 20px !important;
    font-weight: 600;
    padding: 0 !important;
}

.otp-input:focus {
    border-color: #3B75FF;
    box-shadow: 0 0 0 3px rgba(59, 117, 255, 0.15);
}

/* Error animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 12px;
    }

    .login-card {
        padding: 24px 18px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .otp-input {
        width: 38px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
}

/* ===== TOAST / РЈР’Р•Р”РћРњР›Р•РќРРЇ ===== */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 10px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.notification.success {
    background: #22C55E;
    color: #FFFFFF;
}

.notification.error {
    background: #E54646;
    color: #FFFFFF;
}

.notification.info {
    background: #3B75FF;
    color: #FFFFFF;
}

.notification.warning {
    background: #FFD200;
    color: #1A1A1A;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

.notification.removing {
    animation: slideOutRight 0.3s ease forwards;
}