/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom right, #e6f0ff, #e6f7ff, #fffce6);
    min-height: 100vh;
}

/* Container */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Login Card */
#login-card {
    width: 100%;
    max-width: 420px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-out;
}

#login-card.visible {
    opacity: 1;
    transform: scale(1);
}

.card {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0e6ff;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    width: 72px;
    height: 72px;
    background: linear-gradient(to right, #4338ca, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, #1d4ed8, #b45309, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.header p {
    color: #6b7280;
    font-size: 14px;
}

/* Form */
form {
    margin-bottom: 24px;
}

.form-item {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-16px);
    transition: all 0.3s ease-out;
}

.form-item.visible {
    opacity: 1;
    transform: translateX(0);
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Password field with complete style consistency */
input[type="password"],
input[type="text"]#password {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    height: 38px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ensure focus state is also consistent */
input[type="password"]:focus,
input[type="text"]#password:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s;
    z-index: 2;
}

.password-toggle:hover {
    color: #4b5563;
}

/* Options row */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input[type="checkbox"] {
    height: 16px;
    width: 16px;
    margin-right: 8px;
}

.forgot-link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #4f46e5;
}

/* Sign in button */
.sign-in-btn {
    width: 100%;
    background: linear-gradient(to right, #1d4ed8, #3b82f6, #f59e0b);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.sign-in-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

.sign-in-btn:active {
    transform: scale(0.98);
}

/* Register link */
.register-link {
    text-align: center;
}

.register-link p {
    color: #4b5563;
    font-size: 14px;
}

.register-link a {
    font-weight: 500;
    background: linear-gradient(to right, #1d4ed8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.3s;
}

.register-link a:hover {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Error message styles */
.error-message {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    animation: fadeIn 0.3s ease-out;
}

.error-message ul {
    list-style-type: none;
}

.error-message li {
    margin-bottom: 4px;
}

.error-message li:last-child {
    margin-bottom: 0;
}

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

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}