/* Shared styles for Login, ForgotPassword, ResetPassword pages.
   Loaded globally via App.razor so all auth-flow pages get the same look. */

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #f7931e 0%, #f15a24 50%, #c4451c 100%);
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 8px;
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

.login-title {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #888;
    display: flex;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.login-card .form-control,
.login-card input.form-control {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 45px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9f9f9;
}

.login-card .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: white;
}

.login-card .form-control::placeholder {
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #555;
}

.error-message {
    background-color: #fff3f3;
    border: 1px solid #ffcccc;
    color: #d32f2f;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-signin {
    width: 100%;
    padding: 0.875rem;
    background-color: #f15a24;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}

.btn-signin:hover:not(:disabled) {
    background-color: #d14b1a;
}

.btn-signin:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-signin:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.login-reset-link {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
}

.login-reset-link a {
    color: #f15a24;
    text-decoration: none;
}

.login-reset-link a:hover {
    text-decoration: underline;
}

.forgot-blurb {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0.5rem 0 1rem;
}

.btn-signin-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.75rem;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    margin-bottom: 0.5rem;
}

.btn-signin-microsoft:hover {
    background-color: #106ebe;
    color: white;
    text-decoration: none;
}

.btn-signin-microsoft:active {
    transform: scale(0.98);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: #aaa;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.login-divider span {
    padding: 0 0.75rem;
}

.login-env-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    z-index: 2;
    white-space: nowrap;
}

.banner-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.banner-detail {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        flex: none;
        width: 100%;
    }

    .login-card {
        padding: 2rem 1.5rem;
        box-shadow: none;
        background: transparent;
    }
}
