* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.5px;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h1 {
    color: #333;
    font-size: 25px;
    font-weight: 600;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background: #f9fafb;
}

.form-group input:focus {
    border-color: #20b36c;
    box-shadow: 0 0 0 3px rgba(32, 179, 108, 0.1);
    background: white;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.remember-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #20b36c;
}

.forgot-link {
    color: #20b36c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1a9159;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #20b36c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: #1a9159;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.signup-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.signup-link a {
    color: #20b36c;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.signup-link a:hover {
    color: #1a9159;
    text-decoration: underline;
}

.message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.info {
    background-color: #e7f5ff;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.hidden {
    display: none;
}

#verificationOption {
    padding: 12px 16px;
    margin-top: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
    font-size: 13px;
}

#verificationOption a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

#verificationOption a:hover {
    color: #6c5305;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 25px;
    }
    
    .form-header h1 {
        font-size: 24px;
    }
    
    .logo-container img {
        width: 100px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    .logo-container img {
        width: 90px;
    }
}
