* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    background: #0D1117;
    color: #E6EDF3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0D1117 0%, #161B22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.login-container.is-register {
    max-width: 520px;
}

.login-card {
    background: #161B22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 40px 32px;
}

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

.auth-logo-img {
    height: 60px;
}

.auth-logo-sub {
    color: #8B949E;
    font-size: 12px;
    margin-top: 8px;
}

.auth-title {
    color: #E6EDF3;
    font-size: 22px;
    font-weight: 700;
    margin-top: 18px;
}

.auth-text {
    color: #8B949E;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 0;
}

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

.form-label {
    color: #C9D1D9;
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    background: #0D1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #E6EDF3;
    font-size: 14px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: #1C2330;
    border-color: #1D9E75;
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
    color: #E6EDF3;
}

.form-control::placeholder {
    color: #8B949E;
}

.form-check {
    margin-top: 12px;
}

.form-check-input {
    background: #0D1117;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    height: 18px;
    width: 18px;
}

.form-check-input:checked {
    background: #1D9E75;
    border-color: #1D9E75;
}

.form-check-label {
    color: #8B949E;
    cursor: pointer;
    font-size: 13px;
    margin-left: 6px;
}

.forgot-password {
    margin-bottom: 20px;
    text-align: right;
}

.forgot-password a,
.signup-link a {
    color: #1D9E75;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password a {
    font-size: 13px;
    font-weight: 500;
}

.forgot-password a:hover,
.signup-link a:hover {
    color: #2DC98F;
}

.btn-login {
    background: linear-gradient(135deg, #1D9E75 0%, #2DC98F 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    padding: 10px 16px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-login:hover {
    box-shadow: 0 12px 24px rgba(29, 158, 117, 0.3);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    color: #8B949E;
    font-size: 12px;
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.divider::before {
    background: rgba(255, 255, 255, 0.08);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 50%;
    width: 100%;
}

.divider span {
    background: #161B22;
    padding: 0 8px;
    position: relative;
}

.signup-link {
    color: #8B949E;
    font-size: 13px;
    margin-top: 16px;
    text-align: center;
}

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

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FF8A80;
}

.invalid-feedback {
    color: #FF8A80;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.form-control.is-invalid {
    border-color: rgba(239, 68, 68, 0.5);
}

.auth-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.auth-confirm-logo {
    margin-bottom: 20px;
}

.auth-security-label {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 9px;
    border: 1px solid rgba(29, 158, 117, .28);
    border-radius: 999px;
    color: #2DC98F;
    background: rgba(29, 158, 117, .1);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.auth-device-name {
    margin-bottom: 18px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    color: #C9D1D9;
    background: #0D1117;
    font-size: 13px;
    text-align: center;
}

.auth-code-input {
    width: 100%;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 8px;
    text-indent: 8px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.auth-confirm-help {
    margin: 18px 0 0;
    color: #8B949E;
    font-size: 11px;
    text-align: center;
}
