/* ACCOUNT PAGES - SHARED STYLES
   Used by all pre-login views via _LayoutPage.cshtml
*/

html, body { height: 100%; margin: 0; padding: 0; }

/* -- LOGIN PAGE: TWO-PANEL LAYOUT -- */

.login-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    min-height: 100vh;
    background: #f6f8fa;
    color: #1a1a1a;
}

.login-brand {
    width: 45%;
    min-height: 100vh;
    background: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(25,143,240,0.10) 0%, transparent 70%);
    border-radius: 50%;
}

.login-brand::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(23,53,161,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-brand__content {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.login-brand__headline {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 18px 0;
    letter-spacing: -0.3px;
}

.login-brand__subline {
    font-size: 15px;
    color: rgba(255,255,255,0.50);
    line-height: 1.65;
    margin: 0 0 44px 0;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-features__item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
}

.login-features__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--login-feature-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-features__icon i {
    font-size: 13px;
    color: var(--login-accent);
}

.login-brand__footer {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.22);
}

.login-form-panel {
    width: 55%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 380px;
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo img {
    height: 62px;
}

.env-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.env-badge--dev { background: rgba(192,64,64,0.12); color: #c04040; }
.env-badge--staging { background: rgba(34,119,98,0.12); color: #227762; }

.login-header {
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.login-header p {
    font-size: 14px;
    color: #6b7a8d;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.login-form .input-wrap {
    position: relative;
}

.login-form .input-wrap .form-control {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 14px;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-form .input-wrap .form-control::placeholder { color: #b0b8c4; }

.login-form .input-wrap .form-control:focus {
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(25,143,240,0.10);
}

.login-form .input-wrap .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
    font-size: 14px;
    pointer-events: none;
}

.login-form .g-recaptcha {
    margin-bottom: 20px;
}

.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.login-form .form-options .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7a8d;
    cursor: pointer;
}

.login-form .form-options .remember-me input {
    accent-color: var(--login-accent);
}

.login-form .form-options .reset-link {
    color: var(--login-accent) !important;
    text-decoration: none;
    font-weight: 600;
}

.login-form .form-options .reset-link:hover { text-decoration: underline; }

.login-form .btn-login {
    width: 100%;
    height: 48px;
    background: var(--login-btn-gradient);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
}

.login-form .btn-login:hover { opacity: 0.92; }
.login-form .btn-login:active { transform: scale(0.99); }

.login-help {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #6b7a8d;
}

.login-help a {
    color: var(--login-accent) !important;
    text-decoration: none;
    font-weight: 600;
}

.login-help a:hover { text-decoration: underline; }

.login-viewbag {
    margin-top: 16px;
}

.login-footer {
    text-align: center;
    margin-top: 48px;
    font-size: 12px;
    color: #b0b8c4;
}

.login-footer a {
    color: var(--login-accent) !important;
    text-decoration: none;
}

/* -- ACCOUNT PAGES: SINGLE CENTERED CARD -- */

.account-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f6f8fa;
    color: #1a1a1a;
}

.account-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 36px 32px;
}

.account-card .login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.account-card .login-logo img {
    height: 62px;
}

.account-card .login-header {
    margin-bottom: 28px;
}

.account-card .login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.account-card .login-header p {
    font-size: 14px;
    color: #6b7a8d;
    margin: 0;
    line-height: 1.5;
}

.account-card .login-form .form-group {
    margin-bottom: 20px;
}

.account-card .login-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.account-card .login-form .input-wrap {
    position: relative;
}

.account-card .login-form .input-wrap .form-control {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 14px;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.account-card .login-form .input-wrap .form-control::placeholder { color: #b0b8c4; }

.account-card .login-form .input-wrap .form-control:focus {
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(25,143,240,0.10);
}

.account-card .login-form .input-wrap .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
    font-size: 14px;
    pointer-events: none;
}

.account-card .login-form .btn-login {
    width: 100%;
    height: 48px;
    background: var(--login-btn-gradient);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
}

.account-card .login-form .btn-login:hover { opacity: 0.92; }
.account-card .login-form .btn-login:active { transform: scale(0.99); }

.account-card .login-help {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7a8d;
}

.account-card .login-help a {
    color: var(--login-accent) !important;
    text-decoration: none;
    font-weight: 600;
}

.account-card .login-help a:hover { text-decoration: underline; }

.account-card .login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: #b0b8c4;
}

.account-card .login-footer a {
    color: var(--login-accent) !important;
    text-decoration: none;
}

.account-card .account-message {
    font-size: 14px;
    color: #6b7a8d;
    line-height: 1.6;
    text-align: center;
}

.account-card .account-message a {
    color: var(--login-accent) !important;
    text-decoration: none;
    font-weight: 600;
}

.account-card .account-message a:hover { text-decoration: underline; }

.account-card .password-rules {
    font-size: 12px;
    color: #6b7a8d;
    line-height: 1.5;
    margin-top: 6px;
}

/* -- MOBILE -- */

@media (max-width: 900px) {
    .login-wrapper { flex-direction: column; }
    .login-brand { width: 100%; min-height: auto; padding: 40px 32px; }
    .login-brand__headline { font-size: 22px; }
    .login-features { display: none; }
    .login-brand__footer { display: none; }
    .login-form-panel { width: 100%; min-height: auto; padding: 40px 32px; }
    .account-card { margin: 0 16px; }
}

@media (max-width: 500px) {
    .login-brand { padding: 32px 24px; }
    .login-brand__subline { display: none; }
    .login-form-panel { padding: 32px 24px; }
    .account-card { padding: 32px 24px 24px; }
}
