* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 96px;
}

.username-link {
    color: #fff;
    /* or whatever fits your header */
    font-weight: bold;
    margin-right: 10px;
    text-decoration: none;
}

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

.top-bar {
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-lang form {
    display: flex;
    /* spacing between flags */
    align-items: center;
}

.lang-flag {
    font-size: 1.5rem;
    /* default flag size */
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.lang-flag.active {
    transform: scale(1.8);
}

.lang-flag:hover:not(.active) {
    transform: scale(1.2);
}

.top-bar-lang img {
    vertical-align: middle;
}

.username-link {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

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

.logout-btn:hover {
    background: #c0392b;
}

.top-bar-lang img {
    vertical-align: middle;
}

.topbar-buttons {
    display: flex;
    gap: 12px;
}

.topbar-buttons .btn {
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-subscribe {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #357abd, #1d5bbf);
}

.logout-btn {
    background: #e74c3c;
    color: #fff;
    border: 2px solid;
    cursor: pointer;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-login {
    border: 2px solid #4a90e2;
    color: #4a90e2;
    background: transparent;
}

.btn-login:hover {
    color: #fff;
    background: #4a90e2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-logout {
    border: 2px solid #ff4e22;
    color: #ffffff;
    background: #ff4e22;
}

.btn-logout:hover {
    color: #fff;
    background: #e32a1d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
}


.login-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(199, 200, 201, 0.2), rgba(255, 255, 255, 0.2));
    top: -50%;
    left: -50%;
    transform: rotate(25deg);
    z-index: 0;
}

.login-card h2 {
    margin-bottom: 25px;
    color: #4a90e2;
    z-index: 1;
    position: relative;
}

.login-card h3 {
    margin-bottom: 25px;
    color: #4a90e2;
    z-index: 1;
    position: relative;
}

form {
    z-index: 1;
    position: relative;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    text-align: left;
}

form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error {
    background: #ffe6e6;
    color: #d8000c;
    padding: 12px;
    margin-bottom: 15px;
    border-left: 5px solid #d8000c;
    border-radius: 8px;
    text-align: left;
}

.login-card .logo {
    width: 80px;
    margin-bottom: 20px;
    filter: invert(34%) sepia(87%) saturate(6413%) hue-rotate(200deg) brightness(95%) contrast(95%);
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        border-radius: 12px;
    }
}

.subscription-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.subscription-btn:hover {
    background: #1e8449;
    transform: translateY(-2px);
}

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.card h2 {
    margin-bottom: 20px;
    color: #4a90e2;
}

label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    color: #555;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

input:focus {
    border-color: #4a90e2;
    outline: none;
}

.error {
    background: #ffe6e6;
    color: #d8000c;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: left;
}

.footer-link {
    margin-top: 15px;
    display: block;
    color: #4a90e2;
    text-decoration: none;
}

.checkbox-group {
    margin-bottom: 18px;
    text-align: left;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    min-width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #ccc;
    position: relative;
    transition: all 0.2s ease;
}

/* Checked state */
.custom-checkbox input:checked+.checkmark {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-color: transparent;
}

/* Check icon */
.checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

/* Show check */
.custom-checkbox input:checked+.checkmark::after {
    opacity: 1;
}

/* Hover effect */
.custom-checkbox:hover .checkmark {
    border-color: #4a90e2;
}

/* Link styling */
.label-text a {
    color: #4a90e2;
    text-decoration: none;
}

.label-text a:hover {
    text-decoration: underline;
}

.privacy-note {
    font-size: 12px;
    color: #777;
    margin-top: 8px;
    line-height: 1.4;
}

.privacy-note a {
    color: #4a90e2;
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

.promo-hero {
    padding: 60px 20px;
    text-align: center;
}

.promo-hero h1 {
    color: #333;
    /* darker header for contrast */
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.promo-hero p {
    color: #555;
    opacity: 0.9;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.feature-card {
    background: #fff;
    /* white for readability */
    border-radius: 12px;
    padding: 25px 20px;
    width: 260px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card h3 {
    color: #4a90e2;
    /* accent color for titles */
    margin-bottom: 10px;
}

.feature-card p {
    color: #555;
    /* readable text */
    font-size: 0.95rem;
}

.cta {
    margin-bottom: 20px;
}

.cta button {
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #4a90e2;
    /* solid brand blue */
    color: #fff;
    /* white text */
    transition: background 0.3s ease;
    position: relative;
    z-index: 10;
}

.cta button:hover {
    background: #357abd;
    /* darker blue on hover */
}

.skip-link a {
    color: #4a90e2;
    /* link accent color */
    text-decoration: underline;
    font-size: 0.95rem;
}