/* SDN Portal Login — Modern glass theme (revert: copy style.css.bak → style.css) */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --sdn-navy: #001a4d;
    --sdn-cyan: #00aeef;
    --sdn-cyan-dark: #0088c6;
    --sdn-navy-mid: #0a2d6b;
    --sdn-text: #0b1b3a;
    --sdn-muted: #64748b;
    --sdn-border: #e2e8f0;
    --sdn-surface: #f0f7fc;
    --carousel-slide-step: 4.6;
}

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

body,
input,
button {
    font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f7fc 0%, #e8f4fd 45%, #dceefb 100%);
}

main {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

main::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 174, 239, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(0, 26, 77, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.box {
    position: relative;
    width: 100%;
    max-width: 1020px;
    height: 640px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    box-shadow:
        0 24px 64px rgba(0, 26, 77, 0.1),
        0 4px 16px rgba(0, 174, 239, 0.06);
    z-index: 1;
    animation: boxFadeIn 0.6s ease-out;
}

@keyframes boxFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.inner-box {
    position: absolute;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forms-wrap {
    position: absolute;
    height: 100%;
    width: 45%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.form-glass {
    width: 100%;
    max-width: 300px;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 26, 77, 0.06);
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.logo img {
    width: 100%;
    max-width: 168px;
    height: auto;
}


.input-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.input-field {
    width: 100%;
    height: 46px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid var(--sdn-border);
    border-radius: 0.75rem;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: var(--sdn-text);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.input-field::placeholder {
    color: #94a3b8;
}

.input-field:focus {
    border-color: var(--sdn-cyan);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.input-field.active {
    border-color: var(--sdn-cyan);
}

.sign-btn {
    display: inline-block;
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, var(--sdn-cyan) 0%, var(--sdn-cyan-dark) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.3);
}

.sign-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 174, 239, 0.38);
}

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

.oauth-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    gap: 12px;
}

.oauth-divider span:not(:nth-child(2)) {
    flex: 1;
    height: 1px;
    background: var(--sdn-border);
}

.oauth-divider span:nth-child(2) {
    color: var(--sdn-muted);
    font-size: 0.78rem;
}

.microsoft-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--sdn-border);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--sdn-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.microsoft-login-btn:hover {
    border-color: var(--sdn-cyan);
    background: #f8fcff;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.12);
}

.carousel {
    position: absolute;
    height: 100%;
    width: 55%;
    left: 45%;
    top: 0;
    background: linear-gradient(145deg, var(--sdn-navy) 0%, var(--sdn-navy-mid) 55%, #003d6b 100%);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    overflow: hidden;
}

.carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 174, 239, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 174, 239, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.carousel-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.35) 0%, transparent 70%);
    top: 15%;
    right: 10%;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

.carousel-glow-2 {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.2) 0%, transparent 70%);
    bottom: 20%;
    left: 8%;
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.carousel-visual {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.carousel-icon {
    width: 72px;
    height: 72px;
    border-radius: 1.25rem;
    background: rgba(0, 174, 239, 0.15);
    border: 1px solid rgba(0, 174, 239, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--sdn-cyan);
    backdrop-filter: blur(8px);
}

.text-slider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 0 1.5rem;
}

.carousel-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.55;
    color: #fff;
    text-align: center;
    margin: 0;
}

.carousel-tagline .highlight {
    color: var(--sdn-cyan);
}

.images-wrapper {
    display: none;
}

.alert {
    padding: 12px 14px;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    animation: slideIn 0.4s ease-out;
}

.alert-danger {
    color: #991b1b;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

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

@media (max-width: 850px) {
    .box {
        height: auto;
        max-width: 480px;
    }

    .inner-box {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .forms-wrap {
        position: static;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .form-glass {
        max-width: 100%;
    }

    .carousel {
        position: static;
        width: 100%;
        height: auto;
        min-height: 160px;
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }

    .carousel-visual {
        display: none;
    }

    .carousel-tagline {
        font-size: 1.05rem;
    }
}

@media (max-width: 530px) {
    main {
        padding: 1rem;
    }

    .box {
        border-radius: 1.5rem;
    }
}
