:root {
    --hub-primary: #137fec;
    --hub-bg-dark: #101922;
    --hub-input-bg: #1c2127;
    --hub-border: #3b4754;
    --hub-text-muted: #9dabb9;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--hub-bg-dark);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.split-container {
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background-color: black;
    position: relative;
    overflow: hidden;
    background-image: url('../images/index.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, var(--hub-bg-dark) 0%, transparent 60%, rgba(19, 127, 236, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.033em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 32rem;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    background-color: var(--hub-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 540px;
}

.brand-logo {
    background-color: var(--hub-primary);
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(19, 127, 236, 0.2);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-accent {
    color: var(--hub-primary);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
}

.form-control,
.input-group-text {
    background-color: var(--hub-input-bg);
    border: 1px solid var(--hub-border);
    color: white !important;
    padding: 0.85rem 1rem;
    transition: all 0.2s;
}

.form-control {
    border-radius: 0.5rem;
}

.input-group-text {
    border-radius: 0.5rem;
    color: var(--hub-text-muted) !important;
}

.form-control:focus {
    background-color: var(--hub-input-bg);
    border-color: var(--hub-primary);
    outline: none;
    box-shadow: none;
}

/* Focus state for input groups - unified look */
.input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(19, 127, 236, 0.25);
    border-radius: 0.5rem;
}

.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
    border-color: var(--hub-primary);
}

.password-toggle {
    cursor: pointer;
    color: var(--hub-text-muted);
}

.password-toggle:hover {
    color: white;
}

/* Hide default browser password reveal and clear buttons */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.btn-hub {
    background-color: var(--hub-primary);
    color: white;
    font-weight: 700;
    padding: 0.85rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(19, 127, 236, 0.2);
}

.btn-hub:hover {
    background-color: #0f6cdb;
    color: white;
    transform: translateY(-1px);
}

.btn-hub:active {
    transform: scale(0.98);
}

.btn-hub:disabled {
    opacity: 0.7;
    transform: none;
}

.form-check-input {
    background-color: transparent;
    border: 2px solid var(--hub-border);
}

.form-check-input:checked {
    background-color: var(--hub-primary);
    border-color: var(--hub-primary);
}

.otp-input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 52px;
    height: 52px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--hub-border);
    border-radius: 0.75rem;
    background: var(--hub-input-bg);
    color: white;
    transition: all 0.2s;
}

.otp-input:focus {
    border-color: var(--hub-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(19, 127, 236, 0.2);
}

.swal2-popup {
    background-color: var(--hub-bg-dark) !important;
    color: white !important;
    border-radius: 1.5rem !important;
    border: 1px solid var(--hub-border) !important;
}

.swal2-title,
.swal2-html-container {
    color: white !important;
}

/* 2FA Setup Modal */
#setup2FAModal {
    z-index: 1050;
}

.modal-content-custom {
    background-color: var(--hub-bg-dark);
    border: 1px solid var(--hub-border);
    padding: 3rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.material-symbols-outlined {
    vertical-align: middle;
}
