:root {
    --primary: #4700B0;
    --secondary: #00BAC7;
    --accent: #7B2CBF;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --input-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: manipulation;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.login-container {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px 25px;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

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

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.login-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.input-container {
    position: relative;
}

.input-container i.fas {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 14px 45px 14px 45px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 400;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.password-toggle {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    margin-top: 10px;
    position: relative;
    cursor: pointer;
}

.loading-dots {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.loading-dots .dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    animation: bounce 1.4s infinite ease-in-out both;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.error-message {
    color: #ff9e9e;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    background: rgba(255, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.account-options {
    text-align: center;
    margin-top: 12px; /* Reduced gap */
}

.create-account,
.reset-account {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.create-account a,
.reset-account a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.create-account a i,
.reset-account a i {
    margin-left: 5px;
    font-size: 0.8rem;
}
