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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #ffcc00;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 32px;
    width: auto;
}

.logo-text {
    font-weight: 600;
    font-size: 16px;
    color: #cc0000;
    margin-left: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.country-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: white;
    font-size: 12px;
    cursor: pointer;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 48px 40px;
    width: 100%;
    max-width: 500px;
}

.login-header {
    margin-bottom: 24px;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

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

.login-signup a {
    color: #cc0000;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.login-signup a:hover {
    text-decoration: underline;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

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

.required {
    color: #cc0000;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 4px;
}

.toggle-password:hover {
    color: #333;
}

/* Checkbox and Links */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #cc0000;
}

.checkbox-label {
    cursor: pointer;
    color: #333;
    margin: 0;
}

.forgot-password {
    color: #cc0000;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

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

/* Button */
.login-button {
    width: 100%;
    padding: 14px;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #b30000;
}

.login-button:active {
    background-color: #990000;
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.copyright {
    font-size: 11px;
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 12px;
    }

    .login-container {
        padding: 32px 24px;
    }

    .login-title {
        font-size: 24px;
    }

    footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-right {
        flex-direction: column;
        gap: 12px;
    }
}

/* Note for users */
.offline-notice {
    background-color: #fffacd;
    border: 1px solid #ffeb3b;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.offline-notice strong {
    color: #333;
}
