/* Login Specific Styles */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at 0% 0%, #020617 0, #020617 40%, #020617 60%, #020617 100%);
    overflow: hidden;
    color: #e5e7eb;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a nice abstract map pattern or gradient */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
        url('https://cartodb-basemaps-a.global.ssl.fastly.net/dark_all/12/3344/2072.png'); /* Dark map tile */
    background-size: cover, cover, 500px 500px;
    background-repeat: no-repeat, no-repeat, repeat;
    filter: blur(2px);
    z-index: -2;
    animation: moveMap 60s linear infinite;
}

@keyframes moveMap {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 0 0, 0 0, 100% 100%; }
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Dark overlay */
    z-index: -1;
}

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

.login-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%), radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 55%), rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 28px;
    padding: 40px 36px 32px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.9);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

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

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

.logo-container {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.55);
    transform: rotate(-6deg);
    position: relative;
}

.logo-container::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(248, 250, 252, 0.08);
    opacity: 0.8;
}

.login-header h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-header p {
    color: #94a3b8;
    font-size: 14px;
}

.login-subinfo {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
}

.login-subinfo i {
    font-size: 14px;
    color: #22c55e;
}

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

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 18px;
    transition: color 0.2s;
}

.input-wrapper input {
    width: 100%;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 14px 16px 14px 46px;
    color: white;
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    border-color: rgba(56, 189, 248, 0.9);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 0 40px rgba(56, 189, 248, 0.18);
}

.input-wrapper input:focus + i {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #cbd5e1;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 35%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px rgba(37, 99, 235, 0.6);
}

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

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    color: #64748b;
    font-size: 11px;
}

body.entry-login {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    background: radial-gradient(circle at 0% 0%, #e0f2fe 0, transparent 55%), radial-gradient(circle at 100% 0%, #f5d0fe 0, transparent 55%), #f8fafc;
    overflow: auto;
    padding: 24px 16px;
}

body.entry-login .login-background {
    display: none;
}

body.entry-login .login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 55%), radial-gradient(circle at bottom, rgba(16, 185, 129, 0.12), transparent 55%), #f8fafc;
    z-index: -1;
}

body.entry-login .login-container {
    max-width: 460px;
    margin: 32px auto;
}

body.entry-login .login-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 28px 24px 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

body.entry-login .logo-container {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
    transform: none;
}

body.entry-login .login-header h1 {
    color: #0f172a;
}

body.entry-login .login-header p {
    color: #64748b;
}

body.entry-login .input-wrapper input {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #0f172a;
}

body.entry-login .input-wrapper input:focus {
    border-color: #22c55e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

body.entry-login .input-wrapper i {
    color: #9ca3af;
}

body.entry-login .btn-login {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

body.entry-login .login-footer {
    color: #94a3b8;
}
