* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
}

.page {
    min-height: 100vh;
}

.branding {
    min-height: 100vh;
    position: relative;
    background: #000;
    padding: clamp(18px, 4vmin, 46px);
}

.branding-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - clamp(24px, 4vmin, 40px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.branding-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vmin, 28px);
}

.logo-wrap {
    width: clamp(110px, 18vmin, 230px);
    height: clamp(110px, 18vmin, 230px);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.titles h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.45rem, 4vw, 4.6rem);
    letter-spacing: 0.06em;
}

.subtitle-row {
    margin-top: clamp(12px, 2.2vmin, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vmin, 24px);
}

.subtitle-row h2 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
    color: #0080c6;
    font-size: clamp(1rem, 2.4vw, 2.3rem);
}

.pulse-line {
    display: block;
    width: clamp(48px, 10vmin, 120px);
    height: 2px;
    background: linear-gradient(to right, transparent, #0080c6, transparent);
}

.left {
    animation: pulseLeft 8s ease-in-out infinite;
}

.right {
    animation: pulseRight 8s ease-in-out infinite;
}

.branding-footer {
    text-align: center;
    opacity: 0.82;
}

.branding-footer p {
    margin: 0.1rem 0;
}

.branding-footer small {
    opacity: 0.75;
}

.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(450px, 92vw);
    border-radius: 16px;
    border: 2px solid rgba(0, 128, 198, 0.5);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 128, 198, 0.15);
    padding: clamp(18px, 3vmin, 32px);
}

.login-card h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.error {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 74, 74, 0.6);
    color: #ffd4d4;
    background: rgba(220, 60, 60, 0.2);
    border-radius: 10px;
    padding: 0.8rem;
    font-size: 0.94rem;
}

form label {
    display: block;
    margin: 0.75rem 0 0.45rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    border: 1px solid rgba(0, 128, 198, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.78rem 0.84rem;
    outline: 0;
}

form input:focus {
    border-color: #0080c6;
    box-shadow: 0 0 0 3px rgba(0, 128, 198, 0.3);
}

.password-wrap {
    position: relative;
}

.icon-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #0080c6;
    background: transparent;
    font-weight: 700;
}

.options {
    margin-top: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.remember input {
    accent-color: #0080c6;
}

.link-btn {
    border: 0;
    background: transparent;
    color: #00a8ff;
    cursor: pointer;
}

.submit-btn {
    margin-top: 1rem;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #0080c6, #0066a3);
    cursor: pointer;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #00a8ff, #0080c6);
}

.submit-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.security-note {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes pulseLeft {
    0%, 100% { transform: scaleX(1.8) translateX(-10%); opacity: 0.35; }
    35%, 65% { transform: scaleX(1) translateX(0); opacity: 1; }
}

@keyframes pulseRight {
    0%, 100% { transform: scaleX(1.8) translateX(10%); opacity: 0.35; }
    35%, 65% { transform: scaleX(1) translateX(0); opacity: 1; }
}