@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-page: #f8fafc;
    --panel-bg: #ffffff;
    --border-color: #eaedf2;
    --primary-blue: #0062ff;
    --primary-blue-hover: #0050cc;
    --text-main: #191c1e;
    --text-muted: #64748b;
    --input-bg: #ffffff;
    --input-border: #eaedf2;
    --input-focus-border: #0062ff;
    --input-focus-shadow: rgba(0, 98, 255, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at 0% 0%, rgba(0, 98, 255, 0.08) 0%, rgba(0, 98, 255, 0) 50%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0) 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 98, 255, 0.08) 0%, rgba(0, 98, 255, 0) 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 98, 255, 0.05) 0%, rgba(0, 98, 255, 0) 50%),
        var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 32px;
    text-align: center;
}

.logo-container img {
    height: 80px;
    width: auto;
    margin-bottom: 10px;
}

.login-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 20px 40px -15px rgba(0, 98, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.login-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.panel-header {
    align-items: center;
    margin-bottom: 28px;
}

.panel-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.panel-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 0;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 98, 255, 0.06);
    border: 1px solid rgba(0, 98, 255, 0.15);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

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

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--primary-blue-hover);
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.input-icon-right:hover {
    color: var(--text-main);
}

.form-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.form-input::placeholder {
    color: #94a3b8;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.custom-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.submit-btn {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 4px 12px rgba(0, 98, 255, 0.25);
}

.register-text {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-muted);
}

.register-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.register-link:hover {
    text-decoration: underline;
    color: var(--primary-blue-hover);
}

.back-link-wrapper {
    text-align: center;
    margin-top: 28px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: var(--primary-blue);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 36px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-blue);
}

.operational-status {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.status-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.forgot-pass-hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    opacity: 1;
    margin-top: 30px;
    margin-bottom: 20px;
}