body {
    background: #0B0F1A;
    font-family: roboto, sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.content-page {
    line-height: 1.3;
    margin-top: 100px;
    text-align: center;
    padding: 0 15px;
}

/* Responsive typography */
.content-page h1 {
    font-size: clamp(40px, 10vw, 90px); /* Scales from 40px to 90px */
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.content-page p {
    color: #fff;
    margin: 20px auto;
    font-size: clamp(16px, 4vw, 25px); /* Scales from 16px to 25px */
    max-width: 90%;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 2rem;
    padding: 20px;
}

.login-page {
    border: 0.1px solid rgba(140, 150, 165, 0.25);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    padding: 1.5rem;
    box-sizing: border-box;
    margin: 0 auto;
}

.login-page h2 {
    color: whitesmoke;
    font-size: clamp(22px, 5vw, 28px);
    text-align: center;
    margin: 10px 0;
}

.login-page p {
    margin-top: 5px;
    color: #a0a0a0;
    font-size: clamp(13px, 3vw, 15px);
    font-weight: 200;
    text-align: center;
    line-height: 1.4;
}

.input-box {
    width: 100%;
    padding: 14px;
    color: #fff;
    border-radius: 10px;
    border: 1px solid rgba(140, 150, 165, 0.25);
    background: linear-gradient(180deg, #0b1020, #070b16);
    font-size: 16px; /* Prevents zoom on iOS */
    box-sizing: border-box;
    margin: 10px 0;
}

/* Improve touch targets */
.login-page button {
    background: #2ecc71;
    text-decoration: none;
    padding: 16px;
    width: 100%;
    text-align: center;
    color: #070b16;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    min-height: 50px; /* Better touch target */
    margin-top: 10px;
}

.error {
    display: none;
    background: #450a0a;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.success {
    display: none;
    background: #052e16;
    color: #86efac;
    padding: 12px;
    border-radius: 8px;
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Media queries for fine-tuning */
@media (max-width: 480px) {
    .content-page {
        margin-top: 60px;
    }
    
    .login-page {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .input-box, .login-page button {
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .login-container {
        gap: 1.5rem;
        min-height: 40vh;
    }
}

/* Prevent text from being too close to screen edges */
* {
    max-width: 100%;
}

/* Improve readability on small screens */
p, h1, h2 {
    overflow-wrap: break-word;
    hyphens: auto;
}