/* Professional Modern Login Page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

.login-modern-wrapper {
    min-height: 100vh;
    background: linear-gradient(160deg, #0d1b2a 0%, #1b3a4b 25%, #274c6b 50%, #2c5aa0 75%, #1e4976 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* No overlay needed */
.login-modern-wrapper::before,
.login-modern-wrapper::after {
    display: none;
}

/* Floating Elements Container */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Colorful solid orbs matching dashboard theme */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: floatSmooth 25s infinite ease-in-out;
}

/* Teal/Cyan orb - top left */
.orb-1 {
    width: 180px;
    height: 180px;
    top: 2%;
    left: -3%;
    background: radial-gradient(circle at 40% 40%, #26a69a, #1a7a70);
    animation-duration: 28s;
}

/* Orange orb - left middle */
.orb-2 {
    width: 140px;
    height: 140px;
    top: 60%;
    left: 5%;
    background: radial-gradient(circle at 40% 40%, #f5a623, #d68c1a);
    animation-duration: 24s;
    animation-delay: -5s;
}

/* Blue orb - center left */
.orb-3 {
    width: 100px;
    height: 100px;
    top: 45%;
    left: 22%;
    background: radial-gradient(circle at 40% 40%, #4a90d9, #2c5aa0);
    animation-duration: 30s;
    animation-delay: -10s;
}

/* Light Blue orb - top right */
.orb-4 {
    width: 160px;
    height: 160px;
    top: 8%;
    right: 5%;
    background: radial-gradient(circle at 40% 40%, #5dade2, #3498db);
    animation-duration: 26s;
    animation-delay: -3s;
}

/* Pink orb - bottom right */
.orb-5 {
    width: 120px;
    height: 120px;
    bottom: 8%;
    right: 3%;
    background: radial-gradient(circle at 40% 40%, #e84393, #c0376f);
    animation-duration: 32s;
    animation-delay: -8s;
}

/* Green orb - bottom center */
.orb-6 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 45%;
    background: radial-gradient(circle at 40% 40%, #2ecc71, #27ae60);
    animation-duration: 35s;
    animation-delay: -15s;
}

@keyframes floatSmooth {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -20px); }
    50% { transform: translate(-10px, 15px); }
    75% { transform: translate(20px, 10px); }
}

/* Logo Section */
.login-logo {
    margin-bottom: 35px;
    z-index: 2;
    text-align: center;
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo img {
    max-height: 55px;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.login-logo img:hover {
    transform: scale(1.02);
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 45px 40px;
    width: 100%;
    max-width: 420px;
    z-index: 2;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    position: relative;
    overflow: hidden;
}

/* Animated top border */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #8b5cf6, #6366f1);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* User Icon */
.user-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.4);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(44, 90, 160, 0.4); }
    50% { box-shadow: 0 15px 40px rgba(44, 90, 160, 0.6); }
}

.user-icon-wrapper i {
    font-size: 28px;
    color: #fff;
}

/* Card Header */
.login-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-card-header h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

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

/* Form Groups */
.login-form-group {
    margin-bottom: 22px;
}

.login-form-group label {
    display: block;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Input Fields */
.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper > i:first-of-type {
    position: absolute;
    left: 15px;
    color: #9ca3af;
    font-size: 15px;
    transition: all 0.3s ease;
    z-index: 1;
}

.login-input-wrapper input {
    width: 100%;
    padding: 14px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.login-input-wrapper input:focus {
    border-color: #2c5aa0;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1);
}

.login-input-wrapper:focus-within > i:first-of-type {
    color: #2c5aa0;
}

.login-input-wrapper input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 15px;
    transition: all 0.3s ease;
    z-index: 1;
}

.toggle-password:hover {
    color: #2c5aa0;
}

/* Remember Me */
.login-remember {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2c5aa0;
    cursor: pointer;
    margin-right: 10px;
}

.login-remember label {
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

/* Submit Button */
.login-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
    font-family: inherit;
}

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

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.5);
}

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

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

/* Footer */
.login-footer {
    margin-top: 35px;
    text-align: center;
    z-index: 2;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

/* Error Messages */
.login-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

/* Sign Up Link */
.login-signup-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.login-signup-link p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.login-signup-link a {
    color: #2c5aa0;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-signup-link a:hover {
    color: #3498db;
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 35px 25px;
        margin: 0 15px;
    }

    .login-logo img {
        max-height: 45px;
    }

    .orb {
        transform: scale(0.6);
    }
}

