/* Login Page Styles */
/* Animated Background */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

:root {
    --primary-color: #1D71F0;
    --text-color: #333;
    --border-color: #E5E7EB;
    --background-gradient: linear-gradient(135deg, #00D5C3, #1D71F0);
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(-45deg, 
        #00D5C3,
        #1D71F0,
        #0088ff,
        #6600ff,
        #00ffcc,
        #00D5C3,
        #1a75ff,
        #00ccff
    );
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 28px;
    width: 100%;
}

.logo-section {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
}

.logo-section h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1A1A1A;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

.input-group input {
    padding: 10px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #1D71F0;
    box-shadow: 0 0 0 3px rgba(29, 113, 240, 0.1);
}

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

.password-input input {
    width: 100%;
    padding-right: 40px;
}

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

.password-toggle:hover {
    color: #1D71F0;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: #1D71F0;
}

.forgot-password {
    font-size: 14px;
    color: #1D71F0;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    background: #1D71F0;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 6px;
}

.login-button:hover {
    background: #1859C9;
}

.oauth-divider {
    margin: 22px 0;
    text-align: center;
    position: relative;
}

.oauth-divider::before,
.oauth-divider::after {
    display: none;
}

.oauth-divider span {
    color: #666;
    font-size: 14px;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    font-size: 15px;
    color: #1A1A1A;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.oauth-button:hover {
    background: #F8FAFC;
    border-color: #D1D5DB;
}

.oauth-icon {
    width: 20px;
    height: 20px;
}

.error-message {
    display: none;
    color: #dc3545;
    background-color: #fce6e6;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.error-message.visible {
    display: block;
}

.info-message {
    color: #0066cc;
    background-color: #e6f2ff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .login-box {
        padding: 22px 20px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .logo-section h1 {
        font-size: 24px;
    }
}
