/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* KHANIWATA/UNSIL Brand Colors */
    --primary-red: #c41e3a;
    --primary-blue: #1a365d;
    --accent-gold: #d69e2e;
    --accent-light: #f6ad55;
    
    /* Logo Matching Gradients */
    --khaniwata-gradient: linear-gradient(135deg, #c41e3a 0%, #8b0000 50%, #1a365d 100%);
    --unsil-gradient: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #c41e3a 100%);
    --brand-gradient: linear-gradient(135deg, #c41e3a 0%, #a52a2a 30%, #1a365d 70%, #0d1b2a 100%);
    --brand-gradient-light: linear-gradient(135deg, #e53e3e 0%, #c41e3a 50%, #2c5282 100%);
    
    /* Background Gradients - Balanced Red Blue */
    --bg-gradient-left: linear-gradient(135deg, #c41e3a 0%, #1a365d 50%, #c41e3a 100%);
    --bg-gradient-right: linear-gradient(180deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    
    --bg-light: #f0f4f8;
    --white: #ffffff;
    --text-dark: #1a202c;
    --text-muted: #4a5568;
    --text-light: #a0aec0;
    --shadow-soft: 0 10px 40px rgba(26, 54, 93, 0.1);
    --shadow-hover: 0 20px 60px rgba(26, 54, 93, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --success: #48bb78;
    --success-light: rgba(72, 187, 120, 0.15);
    --error: #f56565;
    --error-light: rgba(245, 101, 101, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Gradient Background Overlay - Balanced Red Blue */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c41e3a 0%, #1a365d 50%, #c41e3a 100%);
    z-index: -1;
    animation: gradient-shift 15s ease infinite;
}

.login-page {
    position: relative;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(196, 30, 58, 0.06);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(26, 54, 93, 0.04);
    bottom: -150px;
    right: -100px;
    animation-delay: -3s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(196, 30, 58, 0.03);
    top: 40%;
    right: 20%;
    animation-delay: -5s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: rgba(26, 54, 93, 0.04);
    bottom: 30%;
    left: 10%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-25px) rotate(3deg) scale(1.02); }
    50% { transform: translateY(-15px) rotate(-2deg) scale(0.98); }
    75% { transform: translateY(-30px) rotate(2deg) scale(1.01); }
}

/* Floating Particles */
.particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0.4;
    animation: particle-float 8s ease-in-out infinite;
}

.particle-1 { top: 20%; left: 30%; animation-delay: 0s; width: 8px; height: 8px; }
.particle-2 { top: 60%; left: 70%; animation-delay: -2s; width: 12px; height: 12px; }
.particle-3 { top: 80%; left: 20%; animation-delay: -4s; width: 6px; height: 6px; }
.particle-4 { top: 30%; left: 80%; animation-delay: -6s; width: 10px; height: 10px; }
.particle-5 { top: 50%; left: 40%; animation-delay: -3s; width: 8px; height: 8px; }

@keyframes particle-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-40px) scale(1.3); opacity: 0.5; }
    50% { transform: translateY(-20px) scale(0.9); opacity: 0.4; }
    75% { transform: translateY(-50px) scale(1.1); opacity: 0.6; }
}

/* Main Container */
.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Panel - Branding */
.left-panel {
    width: 50%;
    background: var(--bg-gradient-left);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding-top: 20px;
}

.logo-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 15px;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite 0.5s;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.brand-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.brand-tagline {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 12px;
}

.brand-motto {
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.6;
}

.brand-footer {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.year-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* Circle Decorations */
.circle-decoration {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.c1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.c2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: -80px;
}

.c3 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 10%;
}

/* Right Panel - Form */
.right-panel {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--bg-gradient-right);
}

.form-container {
    width: 100%;
    max-width: 420px;
    padding: 35px 40px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(26, 54, 93, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: slide-up 0.6s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 90px;
    height: 90px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 35px rgba(196, 30, 58, 0.35);
    position: relative;
    overflow: hidden;
}

.form-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.form-icon i {
    font-size: 36px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.form-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.form-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

.form-header p {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Logo Header */
.logo-header {
    text-align: center;
    margin-bottom: 25px;
    margin-top: -10px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05), rgba(26, 54, 93, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(196, 30, 58, 0.1);
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    width: 100%;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 12px 15px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-width: 120px;
}

.logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.header-logo {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
}

.unsil-logo {
    max-height: 45px;
    max-width: 140px;
}

.logo-divider {
    color: var(--primary-red);
    font-size: 20px;
    font-weight: 400;
    opacity: 0.8;
    padding: 0 5px;
}

.logo-caption {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    animation: slide-in 0.4s ease-out;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.alert-success {
    background: var(--success-light);
    color: #276749;
    border-color: var(--success);
}

.alert-success::before {
    background: var(--success);
}

.alert-error {
    background: var(--error-light);
    color: #c53030;
    border-color: var(--error);
}

.alert-error::before {
    background: var(--error);
}

/* Form Styles */
.login-form {
    width: 100%;
}

.input-wrapper {
    margin-bottom: 24px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 20px;
    color: var(--text-light);
    font-size: 18px;
    z-index: 2;
    transition: var(--transition);
}

.form-input {
    width: 100%;
    padding: 18px 50px 18px 55px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: var(--transition);
}

.form-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.form-input:focus + .input-highlight {
    width: 100%;
}

.input-group.focused .input-icon {
    color: var(--primary-red);
    transform: scale(1.1);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

/* Floating label effect */
.form-input:focus,
.form-input:not(:placeholder-shown) {
    padding-top: 22px;
    padding-bottom: 14px;
}

.toggle-password {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-red);
}

.toggle-password:focus {
    outline: none;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.checkbox-container:hover {
    color: var(--text-dark);
}

.checkbox-input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: var(--bg-light);
}

.checkbox-input:checked + .checkmark {
    background: var(--brand-gradient);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.checkbox-input:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-input:checked ~ .checkbox-label {
    color: var(--text-dark);
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 18px 35px;
    background: var(--brand-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-bounce);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.6s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 50px rgba(196, 30, 58, 0.45);
}

.btn-login:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-login.loading {
    pointer-events: none;
}

.btn-login.loading i {
    display: none;
}

.btn-login.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-login i {
    transition: var(--transition);
}

.btn-login:hover i {
    transform: translateX(8px);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #e2e8f0;
}

.form-footer p {
    font-size: 15px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.form-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.form-footer a:hover::after {
    width: 100%;
}

.form-footer a:hover {
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .left-panel {
        width: 50%;
    }
    
    .right-panel {
        width: 50%;
    }
}

@media (max-width: 992px) {
    .left-panel {
        display: none;
    }
    
    .right-panel {
        width: 100%;
        padding: 50px 40px;
        background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    }
    
    .login-container {
        justify-content: center;
    }
    
    .form-container {
        max-width: 480px;
        padding: 40px 45px 45px;
    }

    .gradient-bg {
        background: linear-gradient(135deg, #c41e3a 0%, #8b0000 50%, #1a365d 100%);
    }
}

@media (max-width: 768px) {
    .right-panel {
        padding: 40px 30px;
    }
    
    .form-container {
        padding: 30px 35px 35px;
    }
    
    .form-header h2 {
        font-size: 28px;
    }
    
    .form-icon {
        width: 80px;
        height: 80px;
    }
    
    .form-icon i {
        font-size: 32px;
    }
    
    .brand-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .right-panel {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 25px 25px 30px;
        border-radius: var(--radius-md);
    }

    .logo-header {
        margin-top: 0;
        padding: 15px;
    }

    .logo-row {
        gap: 15px;
    }

    .logo-item {
        padding: 8px 10px;
        min-width: auto;
    }

    .header-logo {
        max-height: 45px;
        max-width: 70px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .form-icon {
        width: 70px;
        height: 70px;
    }
    
    .form-icon i {
        font-size: 28px;
    }
    
    .form-input {
        padding: 16px 45px 16px 50px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 16px;
        font-size: 16px;
    }
    
    .toggle-password {
        right: 16px;
    }
    
    .btn-login {
        padding: 16px 30px;
        font-size: 15px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .logo-header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .logo-row {
        gap: 15px;
    }
    
    .header-logo {
        max-height: 50px;
        max-width: 80px;
    }
    
    .unsil-logo {
        max-height: 40px;
        max-width: 100px;
    }
    
    .logo-divider {
        font-size: 16px;
    }
    
    .logo-caption {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .form-container {
        padding: 20px 20px 25px;
    }
    
    .brand-title {
        font-size: 28px;
    }
    
    .brand-tagline {
        font-size: 16px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .btn-login {
        padding: 14px 25px;
    }

    .logo-header {
        padding: 12px;
    }

    .header-logo {
        max-height: 40px;
        max-width: 60px;
    }
}

/* Auth Pages Footer Override */
body.login-page .footer-alamat,
body.register-page .footer-alamat {
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.72) 0%, rgba(15, 23, 42, 0.92) 100%);
    color: rgba(255, 255, 255, 0.78);
    padding-top: 4rem;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

body.login-page .footer-alamat::before,
body.register-page .footer-alamat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-blue) 50%, var(--accent-gold) 100%);
}

body.login-page .footer-grid,
body.register-page .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

body.login-page .footer-links-group,
body.register-page .footer-links-group {
    display: contents;
}

body.login-page .footer-brand,
body.register-page .footer-brand {
    display: flex;
    gap: 1.2rem;
}

body.login-page .footer-brand img,
body.register-page .footer-brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
    padding: 4px;
}

body.login-page .footer-brand h5,
body.register-page .footer-brand h5 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

body.login-page .footer-brand p,
body.register-page .footer-brand p {
    font-size: 0.88rem;
    line-height: 1.65;
    opacity: 0.85;
    max-width: 320px;
}

body.login-page .footer-social,
body.register-page .footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

body.login-page .footer-social a,
body.register-page .footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.95rem;
    transition: background 0.25s var(--transition), transform 0.25s var(--transition);
}

body.login-page .footer-social a:hover,
body.register-page .footer-social a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

body.login-page .footer-col h6,
body.register-page .footer-col h6 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.1rem;
}

body.login-page .footer-col ul,
body.register-page .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

body.login-page .footer-col a,
body.register-page .footer-col a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.25s var(--transition), padding-left 0.25s var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

body.login-page .footer-col a::before,
body.register-page .footer-col a::before {
    content: '›';
    color: var(--accent-gold);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s var(--transition), transform 0.25s var(--transition);
}

body.login-page .footer-col a:hover,
body.register-page .footer-col a:hover {
    color: #fff;
    padding-left: 0.25rem;
}

body.login-page .footer-col a:hover::before,
body.register-page .footer-col a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

body.login-page .footer-contact p,
body.register-page .footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
    line-height: 1.55;
}

body.login-page .footer-contact i,
body.register-page .footer-contact i {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

body.login-page .footer-contact .footer-note-small,
body.register-page .footer-contact .footer-note-small {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-top: 0.6rem;
}

body.login-page .footer-bottom,
body.register-page .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.6rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1024px) {
    body.login-page .footer-grid,
    body.register-page .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    body.login-page .footer-links-group,
    body.register-page .footer-links-group {
        display: flex;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    body.login-page .footer-grid,
    body.register-page .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    body.login-page .footer-brand,
    body.register-page .footer-brand {
        grid-column: 1 / -1;
    }

    body.login-page .footer-links-group,
    body.register-page .footer-links-group {
        display: contents;
    }
}

@media (max-width: 640px) {
    body.login-page .footer-grid,
    body.register-page .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    body.login-page .footer-brand,
    body.register-page .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    body.login-page .footer-brand p,
    body.register-page .footer-brand p {
        max-width: 100%;
    }

    body.login-page .footer-social,
    body.register-page .footer-social {
        justify-content: center;
    }

    body.login-page .footer-links-group,
    body.register-page .footer-links-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }

    body.login-page .footer-col ul,
    body.register-page .footer-col ul {
        gap: 0.4rem;
    }

    body.login-page .footer-contact p,
    body.register-page .footer-contact p {
        justify-content: center;
    }

    body.login-page .footer-contact .footer-note-small,
    body.register-page .footer-contact .footer-note-small {
        text-align: left;
    }

    body.login-page .footer-bottom,
    body.register-page .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
