/* Premium Glassmorphism Login Form */

:root {
    --primary: #FF4500;
    --primary-glow: rgba(255, 69, 0, 0.5);
    --secondary: #FF8C00;
    --accent: #FFD700;
    --text-main: #1A202C;
    --text-muted: #4A5568;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F2 0%, #FFFDF5 50%, #FFF5F2 100%);
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* Animated Mesh Background */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 69, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.03) 0%, transparent 60%);
    animation: meshRotate 20s linear infinite;
}

@keyframes meshRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Floating Orbs */
.orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 10s ease-in-out infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation-delay: -2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    top: 40%;
    left: 15%;
    animation-delay: -4s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 40px) scale(1.1);
    }
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

/* Hide browser native password reveal icons */
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.login-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    /* Rectangular aspect */
    padding: 40px 48px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Form Layout */
#loginForm,
.login-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.form-group {
    position: relative;
    width: 100% !important;
}

/* Input Styling */
.input-wrapper {
    position: relative;
    /* CRITICAL: Fixed labels jumping left */
}

.input-wrapper input {
    width: 100%;
    padding: 26px 16px 10px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.08);
}

.input-wrapper input:focus+label,
.input-wrapper input:not(:placeholder-shown)+label {
    top: 12px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    padding: 8px;
}

.toggle-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
    background-size: contain;
}

.toggle-icon.show-password {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 11-4.243-4.243m4.242 4.242L9.88 9.88'/%3e%3c/svg%3e");
}

/* Error Messages */
.error-message {
    display: block;
    color: #DC2626;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

/* Button Styling */
.login-btn {
    grid-column: span 2;
    background: var(--primary);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
    transition: all 0.2s ease;
    margin-top: 10px;
}

.login-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 69, 0, 0.3);
}

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

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group {
        grid-column: span 1 !important;
    }

    .login-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .login-card {
        padding: 30px 20px;
    }

    body {
        align-items: center;
        padding: 20px;
    }
}