* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    color: #1a1a1a;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
}

.header .logo {
    width: 32px;
    height: 32px;
}

.header .close-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    font-size: 15px;
    color: #5e5e5e;
    margin-bottom: 32px;
}

.subtitle a {
    color: #4A5C3C;
    text-decoration: underline;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333333;
}

.input-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #2F2F2F;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 45px;
    background: none;
    border: none;
    cursor: pointer;
    color: #4a4a4a;
}

.login-btn {
    width: 100%;
    background-color: #A3E769; /* Soft bright green */
    color: #1a1a1a;
    border: none;
    padding: 18px;
    border-radius: 999px; /* Pill shape */
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 24px;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #92d856;
}

.trouble-section {
    margin-bottom: 40px;
}

.trouble-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 2px;
}

.or-divider {
    text-align: center;
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 24px;
}

.social-login {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    border: 1px solid #d1d1d1;
    border-radius: 999px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.social-btn:hover {
    background-color: #f7f7f7;
}

.passkey-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d1d1d1;
    border-radius: 999px;
    background-color: #fff;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.2s;
}

.passkey-btn:hover {
    background-color: #f7f7f7;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
