* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #006D65;
    --color-text: #333;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.05);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primary);
}

.login-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2rem 6rem 0 rgba(0, 0, 0, 0.01);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.login-card p {
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #575757;
}

.form-group input {
    width: 100%;
    padding: 0.8rem .6rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: .2s all ease;
}

.form-group input:focus {
    outline: none;
    border: 1px solid var(--color-primary);
}

/* Match inputs & select styling */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    /* Remove default arrow styling */
}

/* Focus state */
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--color-primary, #006D65);
    box-shadow: 0 0 0 3px rgba(0, 109, 101, 0.2);
    outline: none;
}

/* Custom dropdown arrow */
select.form-control {
    background: url("data:image/svg+xml;utf8,<svg fill='%23006D65' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 12px center/16px 16px;
    padding-right: 40px;
    /* space for arrow */
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 0.9rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-login:hover {
    background: #005953;
}

.links {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.links a {
    color: var(--color-primary);
    text-decoration: none;
}

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

.back-home {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 0.85rem;
    color: #005953;
}

.back-home:visited {
    color: #006D65;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
    /* Make room for the toggle button */
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--color-primary);
}

.toggle-password:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.eye-icon {
    pointer-events: none;
}

@media (max-width: 900px) {
    * {
        font-size: 12px;
    }
}