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

:root {
    --primary: #006c49;
    --primary-hover: #005a3c;
    --bg-gradient: radial-gradient(at 0% 0%, hsla(161,65%,15%,1) 0, transparent 50%), 
                  radial-gradient(at 50% 0%, hsla(161,100%,30%,1) 0, transparent 50%), 
                  radial-gradient(at 100% 0%, hsla(158,100%,10%,1) 0, transparent 50%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #bbcabf;
}

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    overflow: hidden;
}

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

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

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

.login-header img {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.login-header h1 {
    color: var(--text-main);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-control-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--text-main);
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: scale(1.01);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-login:active {
    transform: scale(0.99);
}

#noti-js {
    margin-top: 16px;
}

#notificacion {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    color: #fca5a5 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    animation: fadeIn 0.3s ease;
}

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

.noti-error svg {
    fill: #ef4444;
}

/* Background Animated Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #4f46e5;
    top: -100px;
    left: -100px;
    animation: drift 20s infinite alternate;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    bottom: -150px;
    right: -100px;
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}
