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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.logo-container {
    margin-bottom: 25px;
}

.logo-container img {
    max-width: 100%;
    width: 280px;
    height: auto;
}

.login-title {
    font-size: 24px;
    color: #202124;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #262627;
    margin-bottom: 25px;
}

.form-group {
    position: relative;
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #202124;
    font-size: 13px;
    font-weight: 500;
}

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

.icon-container {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #343333;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    font-size: 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #ff6600;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.2);
}

.form-group input:focus + .icon-container,
.input-wrapper:focus-within .icon-container {
    color: #ff6600;
}

.form-group input::placeholder {
    color: #85898e;
}

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.remember-me label {
    color: #5f6368;
    font-size: 13px;
    cursor: pointer;
}

.forgot-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

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

.login-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #1557b0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #cfd1d2;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 0px;
    background-color: #dadce0;
}

.divider span {
    padding: 0 15px;
}

.create-account-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #fff;
    color: #1a73e8;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.create-account-btn:hover {
    background-color: #f8f9fa;
    border-color: #1a73e8;
}

/* Language Section - Visible on Desktop */
.language-section {
    margin-top: 20px;
}

.language-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.language-links a {
    color: #252525;
    text-decoration: none;
    font-size: 13px;
}

.language-links a:hover {
    color: #1a73e8;
    text-decoration: none;
}

.language-links a.active {
    color: #252525;
    font-weight: bold;
}

/* Locale Section - Visible on Mobile */
.locale-section {
    display: none;
    margin-top: 20px;
}

.locale-label {
    color: #202124;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
}

.locale-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background-color: #fff;
    color: #202124;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.locale-select:focus {
    border-color: #ff6600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #dadce0;
}

.footer-links img {
    width: 19px;
    height: 19px;
}

.footer-links a {
    color: #0f1010;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: #1a73e8;
}

/* Desktop Styles (Default) */
@media (min-width: 451px) {
    .language-section {
        display: block;
    }
    
    .locale-section {
        display: none !important;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 450px) {
    .main-container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .logo-container img {
        width: 100%;
        max-width: 220px;
    }

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

    .login-subtitle {
        font-size: 13px;
    }

    .form-group input {
        font-size: 14px;
        padding: 11px 11px 11px 40px;
    }

    .icon-container svg {
        width: 18px;
        height: 18px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* On mobile: Hide language, show locale */
    .language-section {
        display: none;
    }
    
    .locale-section {
        display: block;
    }
}

@media (max-width: 360px) {
    .login-title {
        font-size: 20px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .form-group input {
        font-size: 13px;
        padding: 10px 10px 10px 38px;
    }

    .icon-container svg {
        width: 16px;
        height: 16px;
    }

    .icon-container {
        left: 10px;
    }

    .form-group label {
        font-size: 12px;
    }

    .login-btn,
    .create-account-btn {
        font-size: 13px;
        padding: 10px 20px;
    }
}

@media (max-width: 320px) {
    .main-container {
        padding: 0 10px;
    }

    .logo-container img {
        max-width: 180px;
    }
}

/* --- Desktop View (Default) --- */
/* Hide the mobile locale section by default */
.locale-section {
    display: none;
}

/* Ensure language links stay on one line on desktop */
.language-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    margin-bottom: 15px;
}

/* --- Mobile View (450px and below) --- */
@media screen and (max-width: 450px) {
    /* Hide the desktop language links */
    .language-section .language-links {
        display: none;
    }

    /* Show the mobile locale selector */
    .locale-section {
        display: block;
        text-align: center;
        padding: 20px;
    }

    /* Style the select box for better mobile touch */
    .locale-select {
        width: 100%;
        max-width: 300px;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 16px;
        background-color: white;
    }

    .locale-label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #555;
    }
}



/* The animation: fades in and slides up slightly */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    display: none; /* Hidden by default */
    animation: fadeInUp 0.4s ease-out forwards; /* Apply the animation */
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


