/* Alert Styles */
/* Nexa Font Imports */
@font-face {
    font-family: 'Nexa';
    src: url('/fonts/Fonts/Fontfabric - Nexa.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Nexa';
    src: url('/fonts/Fonts/Fontfabric - NexaBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Nexa';
    src: url('/fonts/Fonts/Fontfabric - NexaLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Nexa';
    src: url('/fonts/Fonts/Fontfabric - Nexa-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Nexa';
    src: url('/fonts/Fonts/Fontfabric - NexaBoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}
.alert-danger {
    background: #ffeaea !important;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(183,28,28,0.04);
}
.alert-danger .alert-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #b71c1c;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nexa', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Login Page Styles */
.login-container {
    display: flex;
    height: 100vh;
}

.login-left {
    flex: 1;
    background-image: url('/img/login-background.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.login-right {
    flex: 0 0 520px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 70px;
    position: relative;
}

.logo-container {
    margin-bottom: 10px;
    text-align: center;
    position: relative;
}

.insights-logo {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.insights-logo::first-letter {
    color: #1a1a1a;
}

.portal-text {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    letter-spacing: 2px;
    position: absolute;
    right: 61px;
    top: 44px;
}

.signing-with {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 18px;
    color: #101828;
}

.signing-with img {
    height: 24px;
    width: auto;
}

.signing-with span {
    font-family: 'Nexa', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    text-align: center;
    color: #101828;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #364153;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
}

.password-toggle:hover {
    color: #6b7280;
}

.password-input-container {
    position: relative;
}

.password-input-container .password-field {
    width: 100%;
    padding-right: 48px;
}

.password-input-container .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    outline: none;
}

.password-input-container .toggle-password:hover {
    color: #6b7280;
}

.password-input-container .toggle-password img {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.password-input-container .toggle-password:hover img {
    opacity: 0.7;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1a1a1a;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-signin {
    width: 100%;
    padding: 14px;
    background: #4F39F6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
}

.btn-signin:hover {
    background: #5558e3;
}

.divider {
    align-items: center;
    text-align: center;
    margin: 0 0 18px 0;
    color: #9ca3af;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 16px;
}

.btn-asi {
    width: 100%;
    padding: 14px;
    background: white;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-asi:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.alert-title {
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 8px;
}

.alert ul {
    margin-left: 20px;
    color: #991b1b;
}

/* Forgot Password Page Styles */
.forgot-container {
    display: flex;
    height: 100vh;
}

.forgot-left {
    flex: 1;
    background-image: url('/img/login-background.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.forgot-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.forgot-right {
    flex: 0 0 520px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 70px;
    position: relative;
}

.sentral-logo {
    height: 60px;
    margin-bottom: 20px;
}

.asicare-logo {
    height: 60px;
    margin-bottom: 20px;
}

.page-title {
    font-family: 'Nexa', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
    line-height: 32px;
    letter-spacing: 0px;
}

.page-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    text-align: left;
}

.btn-reset {
    width: 100%;
    padding: 14px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
}

.btn-reset:hover {
    background: #5558e3;
}

.go-back {
    text-align: center;
    margin-top: 16px;
}

.go-back a {
    font-size: 14px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.go-back a:hover {
    text-decoration: underline;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .login-left,
    .forgot-left {
        display: none;
    }

    .login-right,
    .forgot-right {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .login-right,
    .forgot-right {
        padding: 40px 30px;
    }
}
