/* Brand-inspired Login Page CSS */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #374151;
}

h2, h1 {
    width: 60%;
    min-width: 240px;
    margin: 24px auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 54px; /* Fixed height for vertical centering */
    padding: 0;
    background: #f1c7df;
    color: #d72660;
    border-radius: 18px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 4px rgba(215,38,96,0.04);
    font-size: 1.6rem;
}

@media (max-width: 600px) {
    h2, h1 {
        width: 90%;
        font-size: 1.15rem;
        height: 44px;
        border-radius: 14px !important;
    }
}

.login-container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 32px 24px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(215,38,96,0.07);
}

label {
    font-weight: bold;
    display: block;
    margin: 12px 0 4px;
    color: #d72660;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1.5px solid #f1c7df;
    font-size: 15px;
    background: #f7f7f7;
    color: #374151;
}

input[type="password"] {
    width: 100%;
    padding: 10px 38px 10px 12px; /* restore original padding, right for icon */
    border-radius: 12px;
    border: 2px solid #f1c7df;
    background: #f7f7f7;
    color: #374151;
    font-size: 16px;
    box-sizing: border-box;
    height: auto;
    display: block;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #fff;
    color: #d72660;
    border: 1.5px solid #d72660;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

button[type="submit"]:hover {
    background: #d72660;
    color: #fff;
}

.login-error {
    color: #d72660;
    background: #fbeaec;
    border: 1px solid #f1c7df;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 15px;
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.eye-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1.3rem;
    opacity: 0.85;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
}

@media (max-width: 480px) {
    .login-container {
        padding: 18px 8px 16px 8px;
        border-radius: 12px;
    }
    h2, h1 {
        font-size: 20px;
        padding: 14px 0 8px 0;
        border-radius: 10px !important;
    }
    button[type="submit"] {
        padding: 10px;
        font-size: 15px;
    }
}
