﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Layout */
.row.dark-background {
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
}

.page-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-header {
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    color: #092a47 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-footer {
    flex-shrink: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* Card */
.card {
    border-radius: 16px !important;
}

#card {
    display: flex;
    height: 100%;
}

    #card > div {
        flex: 1;
        display: flex;
    }

.card-body {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.gray-card {
    background-color: #e0e0e0 !important;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 113, 130, 0.15);
}

.content-card {
    border-radius: 12px;
    border: none;
    max-width: 900px;
    margin: 0 auto 12px auto;
}

.header-card {
    background-color: #007182;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Background & Colors */
.dark-background {
    background-color: #092a47;
    color: #ffffff;
}

/* Buttons */
.btn {
    width: 200px;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: bold;
    padding: 10px 20px;
}

.btn-primary {
    background-color: #092a47 !important;
    color: #ffc93b !important;
}

.btn-secondary {
    background-color: #ffffff !important;
    color: #092a47 !important;
}

.btn-check:checked + .btn.btn-active-success,
.btn-check:active + .btn.btn-active-success,
.btn.btn-active-success:focus:not(.btn-active),
.btn.btn-active-success:hover:not(.btn-active),
.btn.btn-active-success:active:not(.btn-active),
.btn.btn-active-success.active,
.btn.btn-active-success.show,
.show > .btn.btn-active-success {
    border-color: #ffc93b !important;
    background-color: #ffc93b !important;
}

/* Typography */
.card-label {
    font-size: 1.5rem;
    color: #092a47;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInText 1s ease forwards;
    animation-delay: 0.8s;
}

.content-p {
    color: #092a47 !important;
    text-align: justify;
    font-size: medium;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

/* Info & Error Boxes */
.info-box {
    background: #c6d3d8;
    padding: 12px;
    border-radius: 6px;
    border-right: 4px solid #ffc93b;
    font-size: 13px;
    margin-bottom: 16px;
}

.error-box {
    background: #ffebee;
    padding: 12px;
    border-radius: 6px;
    border-right: 4px solid #f44336;
    color: #d32f2f;
    font-size: 13px;
    margin-top: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 6px;
}

/* OTP */
.otp-title {
    font-size: 16px;
    font-weight: bold;
    color: #FFD166;
    margin-bottom: 20px;
}

.otp-desc {
    font-size: 14px;
    color: #ffffffaa;
    margin-bottom: 10px;
}

.otp-inputs .otp-box {
    width: 45px;
    height: 50px;
    border-radius: 8px;
    border: none;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    background-color: #e5e5e5;
    color: #0D1B2A;
}

    .otp-inputs .otp-box:focus {
        outline: 2px solid #FFD166;
        box-shadow: 0 0 6px rgba(255, 209, 102, 0.5);
    }

.otp-resend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #ffffffaa;
}

.resend-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    min-width: 180px;
}

.timer-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 13px;
    color: #ffffffaa;
}

/* Password Strength */
.strength-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.level-1 {
    width: 25%;
    background-color: #dc3545;
}

.level-2 {
    width: 50%;
    background-color: #fd7e14;
}

.level-3 {
    width: 75%;
    background-color: #ffc107;
}

.level-4 {
    width: 100%;
    background-color: #28a745;
}

/* Logo */
.logo {
    width: 40%;
    max-width: 260px;
    opacity: 0;
    animation: fadeInLogo 1.5s ease forwards;
}

.underline {
    margin-top: 15px;
    position: relative;
    display: inline-block;
}

    .underline::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #092a47;
        animation: drawLine 1.5s ease-in-out forwards;
        animation-delay: 1s;
    }

/* Animations */
@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes drawLine {
    0% {
        width: 0;
        left: 50%;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 100%;
        left: 0;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softEnter {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.01);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.step-page {
    animation: softEnter 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        width: 180px;
        font-size: 1rem;
    }

    .page-footer {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 160px;
        font-size: 0.95rem;
    }

    .page-footer {
        padding: 10px;
    }

    .otp-inputs .otp-box {
        width: 38px;
        height: 44px;
        font-size: 18px;
    }

    .resend-btn {
        min-width: 140px;
    }
}

@media (max-height: 600px) {
    .page-header {
        min-height: 40px;
    }

    .page-footer {
        padding: 10px;
    }

    .btn {
        padding: 8px 16px;
    }
}
