@import url(../fonts/stylesheet.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    /* new style */
    overflow: hidden;
}

/* Background Shape Styles
   ========================================================================== */

.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    backdrop-filter: blur(5px);
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation: float 12s infinite ease-in-out;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation: float 18s infinite ease-in-out;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 5%;
    animation: float 10s infinite ease-in-out;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 85%;
    animation: float 14s infinite ease-in-out;
    animation-delay: 1s;
}

.shape:nth-child(5) {
    width: 90px;
    height: 90px;
    top: 60%;
    left: 15%;
    animation: float 16s infinite ease-in-out;
    animation-delay: 3s;
}

.shape:nth-child(6) {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 50%;
    animation: float 11s infinite ease-in-out;
    animation-delay: 5s;
}

.shape:nth-child(7) {
    width: 110px;
    height: 110px;
    top: 80%;
    left: 60%;
    animation: float 13s infinite ease-in-out;
    animation-delay: 2.5s;
}

.shape:nth-child(8) {
    width: 50px;
    height: 50px;
    top: 15%;
    left: 70%;
    animation: float 9s infinite ease-in-out;
    animation-delay: 4.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-40px) translateX(30px) rotate(90deg) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-60px) translateX(-20px) rotate(180deg) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-30px) translateX(-40px) rotate(270deg)
            scale(1.05);
        opacity: 0.4;
    }
}

/* Login Wrapper Styles
   ========================================================================== */

.login-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.toast {
    width: 100% !important;
}

.btn-logout {
    background: #dc3545 !important;
}

/*
.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 400px;
  
  animation: slideIn 0.8s ease-out;
}
*/
.login-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

.login-header {
    margin-bottom: 32px;
    text-align: center;
}

.brand-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #1d4ed8;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #2563eb;
}

.checkbox-text {
    font-size: 14px;
    color: #374151;
    user-select: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: #ffffff;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.social-icon {
    width: 18px;
    height: 18px;
}

.signup-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.signup-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #1d4ed8;
}

.btn-to-link {
    background: none; /* Removes background color */
    border: none; /* Removes border */
    padding: 0; /* Removes padding */
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }

    .brand-title {
        font-size: 24px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

/* Two FA Code  Styles
   ========================================================================== */

section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.container-form {
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

#otp-form {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
#otp-form input {
    border: 1px solid #8c8c8c;
    color: #000000;
    font-size: 14px;
    text-align: center;
    padding: 8px;
    width: 100%;
    max-width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    /* outline: 2px solid rgb(66, 66, 66); */
}

#otp-form input::-webkit-outer-spin-button,
#otp-form input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#otp-form input[type="number"] {
    -moz-appearance: textfield;
}

#otp-form input:focus-visible {
    outline: 2px solid royalblue;
}
#otp-form input.filled {
    outline: 2px solid rgb(7, 192, 99);
}

@media only screen and (max-width: 600px) {
    #otp-form input {
        padding: 0px;
        height: auto;
    }
}
