:root {
    --primary-color: #2264c7;
    --secondary-color: #2a7bb1;
    --left-section-width: 25%;
    --right-section-width: 75%;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.left-section {
    width: var(--left-section-width);
    background: linear-gradient(150deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.left-content {
    max-width: 90%;
    text-align: center;
    z-index: 2;
}

.logo {
    max-width: 120px;
    max-height: 114px;
    margin-bottom: 30px;
}

.system-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.system-description {
    font-size: 1rem;
    margin-bottom: 3rem;
}

.btn-dashboard {
    background-color: white;
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-dashboard:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.left-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.right-section {
    width: var(--right-section-width);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    background-image: url('../images/unira.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
}

.right-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    mix-blend-mode: multiply;
    z-index: 1;
}

.right-content {
    padding: 4rem 3rem;
    z-index: 2;
    position: relative;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.right-content h1 {
    font-size: 2,5 rem;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.right-content p {
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Tentang AMI Footer */
.info-footer {
    width: 100%;
    background: rgba(47, 62, 83, 0.85);
    color: #fff;
    padding: 0.7rem 0;
    position: relative;
    font-size: 0.85rem;
    text-align: center;
    z-index: 10;
}

.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.info-box {
    background: none;
    border: none;
    box-shadow: none;
    color: #fff;
    padding: 0;
    text-align: left;
    font-size: 1rem;
}

.info-box h5 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-box p,
.info-box a,
.info-box small {
    color: #e0e0e0;
    font-size: 0.97rem;
    margin-bottom: 0.3rem;
}

.info-box a {
    color: #6ab0ff;
    text-decoration: underline;
    word-break: break-all;
}

.info-copyright {
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    border-top: 1px solid #44556c;
    padding-top: 0.7rem;
}

/* Default: footer di kanan tampil, di kiri sembunyi */
.info-footer-mobile { display: none; }
.info-footer-desktop { display: block; }

.info-footer-desktop {
    opacity: 0;
    animation: fadeInFooter 1.2s ease 0.5s forwards;
}

@keyframes fadeInFooter {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

.fade-in-ami {
    opacity: 0;
    transform: translateY(30px);
    transition: all 2s ease-out;
}

.fade-in-ami.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .info-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    .right-content {
        padding: 3rem 2rem;
    }
    .right-content h1 {
        font-size: 2.5rem;
    }
    .right-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .left-section {
        width: 30%;
    }
    .right-section {
        width: 70%;
    }
    .info-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    .left-section, .right-section {
        width: 100%;
        height: auto;
    }
    .left-content {
        max-width: 80%;
    }
    .logo {
        width: 100px;
    }
    .system-subtitle {
        font-size: 1.3rem;
    }
    .system-description {
        font-size: 0.95rem;
    }
    .btn-dashboard {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    .right-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    .right-content h1 {
        font-size: 2rem;
    }
    .right-content p {
        font-size: 1rem;
    }
    .info-footer {
        padding: 0.6rem 0;
        font-size: 0.8rem;
    }
    .info-container {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0 0.8rem;
    }
    .info-box h5 {
        font-size: 0.95rem;
    }
    .info-box p, .info-box a, .info-box small {
        font-size: 0.9rem;
    }
    .info-copyright {
        font-size: 0.85rem;
    }
}

@media (max-width: 700px) {
    .split-container {
        flex-direction: column;
        min-height: 100vh;
        height: auto;
        background: none;
    }
    .left-section {
        display: flex !important;
        width: 100vw;
        min-height: calc(100vh - 25vh);
        height: calc(100vh - 25vh);
        align-items: center;
        justify-content: center;
        background: url('../images/unira.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        position: relative;
        z-index: 2;
        flex-direction: column;
    }
    .left-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1;
    }
    .left-content {
        position: relative;
        z-index: 2;
        background: none;
        border-radius: 0;
        padding: 0 1.2rem;
        box-shadow: none;
        max-width: 95vw;
        margin: 0 auto;
        text-align: center;
        color: #fff;
        max-height: 70vh;
        flex: 0 0 70vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .logo {
        width: 90px;
        margin-bottom: 18px;
    }
    .system-subtitle {
        font-size: 1.15rem;
        margin-bottom: 1.2rem;
    }
    .system-description {
        font-size: 0.97rem;
        margin-bottom: 1.5rem;
    }
    .btn-dashboard {
        font-size: 1.1rem;
        padding: 14px 32px;
        border-radius: 30px;
        margin: 2rem auto 0 auto;
        box-shadow: 0 4px 12px rgba(34,100,199,0.10);
        background: #fff;
        color: var(--primary-color);
        font-weight: bold;
    }
    .left-footer {
        position: static;
        margin-top: 1.2rem;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.8);
        z-index: 2;
    }
    .right-section {
        display: none !important;
    }
    .access-card, .card-container, .card-body-custom {
        all: unset;
        display: contents;
    }
    .info-footer-mobile {
        display: block;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 25vh;
        min-height: 90px;
        max-height: 40vh;
        z-index: 99;
        background: rgba(47, 62, 83, 0.92);
        font-size: 0.8rem;
        padding: 0.5rem 0;
        border-radius: 0;
        margin: 0;
        box-shadow: 0 -2px 12px rgba(34,100,199,0.07);
        overflow-y: auto;
    }
    .info-footer-desktop {
        display: none;
    }
    .info-footer-mobile .info-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0 0.8rem;
        max-width: 100vw;
        text-align: left;
    }
    .info-footer-mobile .info-box h5 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    .info-footer-mobile .info-box,
    .info-footer-mobile .info-box p,
    .info-footer-mobile .info-box a,
    .info-footer-mobile .info-box small {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    .info-footer-mobile .info-copyright {
        font-size: 0.75rem;
        margin-top: 0.5rem;
        padding-top: 0.3rem;
    }
}

@media (max-width: 480px) {
    .left-content {
        max-width: 90vw;
    }
    .logo {
        width: 80px;
        margin-bottom: 15px;
    }
    .system-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .system-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    .btn-dashboard {
        font-size: 1rem;
        padding: 12px 28px;
    }
    .left-footer {
        font-size: 0.75rem;
    }
    .info-footer-mobile {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    .info-footer-mobile .info-container {
        gap: 0.4rem;
        padding: 0 0.6rem;
    }
    .info-footer-mobile .info-box h5 {
        font-size: 0.9rem;
    }
    .info-footer-mobile .info-box,
    .info-footer-mobile .info-box p,
    .info-footer-mobile .info-box a,
    .info-footer-mobile .info-box small {
        font-size: 0.75rem;
    }
    .info-footer-mobile .info-copyright {
        font-size: 0.7rem;
    }
}