/* General Styles */
body {
    font-family: 'Lora', serif !important;
    background: url('../theme/image/background.svg') no-repeat center center fixed;
    background-size: cover;
    background-color: #f0f3fb;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.container {
    padding: 20px;
    border-radius: 12px;
    max-width: 1200px;
    text-align: center;
    background: transparent;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.8rem;
    color: #274c77;
    font-weight: bold;
}

.subtitle {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.3rem;
}

.main-card, .card {
    background-color: transparent;
    padding: 25px;
    border-radius: 12px;
    margin: 20px auto;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 900px;
    transition: transform 0.3s;
}

.main-card:hover, .card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #274c77;
}

.card p, .card ul {
    font-size: 1rem;
    color: #555;
    text-align: left;
}

.card ul {
    padding-left: 20px;
}

label {
    display: block;
    margin: 10px 0;
    font-weight: bold;
    color: #274c77;
}

input[type="text"], input[type="number"] {
    width: 95%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #a3cef1;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

legend {
    font-weight: bold;
    color: #274c77;
}

.password-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.password-display input {
    width: 70%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.password-display button {
    width: 25%;
    padding: 12px;
    background-color: #274c77;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.password-display button:hover {
    background-color: #1b3555;
}

.progress-bar, .strength-meter {
    background-color: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

#progress, #strengthBar {
    height: 100%;
    width: 0;
    transition: width 0.3s;
    border-radius: 6px;
}

#progress { background-color: #a3cef1; }
#strengthBar { background-color: #ff0000; }

button {
    width: 100%;
    padding: 12px;
    background-color: #274c77;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1rem;
    transition: 0.3s;
    font-weight: bold;
}

button:hover {
    opacity: 0.9;
    transform: scale(1.05);
    background-color: #1b3555;
}

/* Accessibility Improvements */
input:focus, button:focus {
    outline: 3px solid #274c77;
    outline-offset: 3px;
}

/* Responsive Design */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .container {
        width: 95%;
        padding: 18px;
    }

    .card {
        padding: 18px;
        width: 95%;
    }

    .card h2 {
        font-size: 1.4rem;
    }

    .card p, .card ul {
        font-size: 0.95rem;
    }

    input[type="text"], input[type="number"], .password-display input, .password-display button, button {
        font-size: 0.95rem;
    }
}
