@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 94, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 94, 0, 0.6), 0 0 40px rgba(255, 0, 60, 0.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #00050a 0%, #0a1628 50%, #00050a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 94, 0, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 0, 60, 0.03) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.main-logo {
    width: 100%;
    margin-bottom: 30px;
    animation: float 4s ease-in-out infinite;
    border-radius: 12px;
}

.input-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.input-wrapper {
    background: rgba(18, 31, 43, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.2), rgba(255, 0, 60, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: transparent;
    background: rgba(18, 31, 43, 0.95);
    transform: translateY(-1px);
    animation: glow 2s ease-in-out infinite;
}

.input-wrapper:focus-within::before {
    opacity: 1;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: white;
    padding-left: 12px;
    width: 100%;
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-wrapper input:focus::placeholder {
    opacity: 0;
    transform: translateX(10px);
}

.icon {
    font-size: 18px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within .icon {
    opacity: 1;
    transform: scale(1.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 25px;
    align-items: center;
    margin-top: 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
}

.remember-me:hover {
    color: rgba(255, 255, 255, 0.9);
}

.remember-me input[type="checkbox"] {
    accent-color: #ff5e00;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: #ff9900;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff9900;
    transition: width 0.3s ease;
}

.forgot-link:hover::after {
    width: 100%;
}

.forgot-link:hover {
    color: #ffb84d;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff5e00, #ff003c);
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
}

.footer-text {
    margin-top: 30px;
    background: rgba(13, 27, 42, 0.6);
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
    animation: pulse 3s ease-in-out infinite;
}

@media (max-width: 480px) {
    .login-container {
        padding: 0;
        max-width: 100%;
        border-radius: 0;
        border: none;
        background: transparent;
        backdrop-filter: none;
    }

    .main-logo {
        border-radius: 0;
        margin-bottom: 25px;
    }

    .logo-area {
        margin: 0 -30px;
    }

    .login-form,
    .footer-text {
        margin-left: 5px;
        margin-right: 5px;
    }
}
