@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap);
/* Imports the Inter font from Google Fonts */

/* Global and layout styles */
body {
    zoom: 0.8;
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #1a202c;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background-color: #3182ce;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
header p {
    font-size: 1.25rem;
    font-weight: 400;
}
main {
    flex-grow: 1;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.frame {
    max-width: 960px;
    width: 100%;
}
.app-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Language selector styles */
.optionContainer {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.optionContainer label {
    color: #e2e8f0;
    font-size: 0.875rem;
}
.optionContainer select {
    background-color: #2b6cb0;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.875rem;
}

/* App card styles */
.app-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #e2e8f0;
}
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.app-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2b6cb0;
    margin-bottom: 0.5rem;
}
.app-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn {
    background-color: #4299e1;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}
.btn:hover {
    background-color: #3182ce;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 0.875rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

/* Responsiveness */
@media (max-width: 640px) {
    .app-selection {
        flex-direction: column;
        align-items: center;
    }
}

/* ==================== LOGIN FORM ==================== */
#loginBox {
    animation: fadeIn 0.3s ease;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 6px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.12);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 1.05rem;
    color: #718096;
    pointer-events: none;
    transition: all 0.25s ease;
    background: #fff;
    padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 0.85rem;
    color: #3182ce;
    font-weight: 500;
}

.btn-primary {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #2b6cb0;
}

.btn-secondary {
    background-color: transparent;
    color: #3182ce;
    border: 2px solid #3182ce;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #f0f4f8;
}

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