/* login.css */

:root {
    --primary: #13ec5b;
    --primary-dark: #0fbc49;
    --primary-light: rgba(19, 236, 91, 0.1);
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 20px 50px rgba(0,0,0,0.15);
    --font-family: 'Outfit', 'Inter', sans-serif;
}

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

/* Hide default browser password reveal/clear icons */
input::-ms-reveal,
input::-ms-clear,
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

body, html {
    height: 100%;
    font-family: var(--font-family);
    overflow: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.3;
    animation: blobFloat 20s infinite alternate;
}

.blob-1 {
    background: var(--primary);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.blob-2 {
    background: #10b981;
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

.blob-3 {
    background: #0ea5e9;
    top: 40%;
    left: 20%;
    width: 300px;
    height: 300px;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.1); }
}

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

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 48px;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.login-logo {
    height: 80px;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

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

.login-form .form-group {
    margin-bottom: 24px;
}

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

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

.input-field .material-symbols-outlined {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 20px;
}

.input-field input {
    width: 100%;
    height: 56px;
    padding: 0 48px 0 48px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-toggle-pw {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn-toggle-pw:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.btn-login {
    width: 100%;
    height: 60px;
    background: var(--primary);
    color: #0f172a;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    box-shadow: 0 10px 20px rgba(19, 236, 91, 0.2);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(19, 236, 91, 0.3);
}

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

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-msg {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #fee2e2;
    margin-bottom: 24px;
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #0f172a;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
}