/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

.login-box {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
}

.login-box h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
}

.login-box p {
    color: #666666;
    margin-bottom: 2rem;
    font-size: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 0;
    padding-right: 0;
    border: 0;
    border-bottom: 1px solid #E5E5E5;
    background: transparent;
    font-size: 16px;
    color: #2C2C2C;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #2C2C2C;
}

.form-group input::placeholder {
    color: #999999;
}

/* Auth method toggle: Password vs Magic link */
.auth-method-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E5E5E5;
}

.auth-method-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.auth-method-tab:hover {
    color: #2C2C2C;
}

.auth-method-tab.active {
    color: #2C2C2C;
    border-bottom-color: #2C2C2C;
}

.auth-method-tab[aria-selected="true"] {
    color: #2C2C2C;
    border-bottom-color: #2C2C2C;
}

.login-password-group.hidden {
    display: none;
}

.error-message {
    background: #FFF5F5;
    border-left: 4px solid #DC2626;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #DC2626;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #F0FDF4;
    border-left: 4px solid #16A34A;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #16A34A;
    font-size: 14px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Remove underlines from all buttons */
.btn-primary,
.btn-secondary,
button,
a.btn {
    text-decoration: none !important;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: #2C2C2C;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    background: #000000;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    color: #2C2C2C;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #FAFAFA;
    border-color: #2C2C2C;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    color: #999999;
    font-size: 14px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #E5E5E5;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.password-hint {
    color: #999999;
    font-size: 13px;
    margin-top: 0.25rem;
    display: block;
}

.hidden {
    display: none !important;
}

/* Icons - Single Color and Smaller */
i.fas, i.fab, i.far {
    color: #2C2C2C;
    font-size: 0.875rem;
}

.registration-confirmation-icon {
    font-size: 2rem;
    color: #10B981;
}

.registration-confirmation-icon i {
    color: #10B981;
    font-size: 2rem;
}

/* Password input wrapper for eye icon */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E5E5E5;
    transition: border-color 0.2s;
}

.password-input-wrapper:focus-within {
    border-bottom-color: #2C2C2C;
}

.password-input-wrapper input {
    flex: 1;
    padding: 0.75rem 2rem 0.75rem 0;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: #2C2C2C;
}

.password-input-wrapper input:focus {
    outline: none;
}

.password-input-wrapper input::placeholder {
    color: #999999;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    padding-right: 0.25rem;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 1;
    width: 2rem;
}

.password-toggle:hover {
    color: #2C2C2C;
}

.password-toggle:focus {
    outline: none;
    color: #2C2C2C;
}

.password-toggle i {
    font-size: 16px;
    line-height: 1;
}

.password-validation {
    margin-top: 0.5rem;
    font-size: 13px;
    min-height: 1.2rem;
}

.password-validation .validation-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    color: #666666;
}

.password-validation .validation-item.valid {
    color: #16A34A;
}

.password-validation .validation-item.invalid {
    color: #DC2626;
}

.password-validation .validation-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    background-size: contain;
}

.password-validation .validation-item.valid::before {
    content: '✓';
    color: #16A34A;
    font-weight: bold;
}

.password-validation .validation-item.invalid::before {
    content: '✗';
    color: #DC2626;
    font-weight: bold;
}

.password-validation .match-message {
    font-weight: 500;
}

.registration-confirmation {
    background: #F9FAFB;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.registration-confirmation h2 {
    margin-top: 0;
    color: #1A1A1A;
    font-size: 1.5rem;
}

.registration-confirmation .muted-note {
    font-size: 13px;
    color: #4B5563;
    margin-bottom: 0.75rem;
}

/* Text links in login form - match SIMEZU general link styling */
.login-link-text {
    color: #2C2C2C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}.login-link-text:hover {
    color: #000000;
    text-decoration: underline;
}/* Spacing for forgot password link */
.forgot-password-link-container {
    margin-top: 20px;
}