:root {
    --clr-surface-a0: #121212;
    --clr-surface-a10: #282828;
    --clr-surface-a20: #3f3f3f;
    --clr-surface-a30: #575757;
    --clr-surface-a40: #717171;
    --clr-surface-a50: #8b8b8b;
}

.btn2 {
    font-weight: bold;
    font-size:20px;
    position: absolute;
    top:2px;
    right:2px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}
.card {
margin: 10px 0;
border-radius: 10px; /* Rounded borders */
overflow: hidden; /* Ensures content respects border-radius */
}
.card-content {
border-radius: 10px 10px 0 0; /* Match card corners */
}
.card img {
width: 100%;
border-radius: 10px 10px 0 0; /* Ensure top corners of the image are rounded */
}

.body-main{
    background-color: #121212;
}

.body-login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #121212;
    margin: 0;
}
.body-login .card {
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
}
.body-login .card-content {
    text-align: center;
}
.body-login .btn-large {
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;

}
.body-login .brand-logo {
    font-weight: bold;
    font-size: 24px;
    color: #000000;
}


  /* Confirmation Modal Styles */
  .modalstyle {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    width: 100%;
    height: 100%;
}

.modal-content {
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--clr-surface-a10);
    max-width: 400px;
    width: 90%;
}

/* Login page styles */
.login-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    color: #ffffff;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 12px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff6b6b;
}

.success-message {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #6bcf7f;
}

.warning-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    transform: scale(1.05);
}

.loading {
    display: none;
    margin-top: 20px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.security-info {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.security-info svg {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* Redirect Loading Overlay */
.redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.redirect-overlay.active {
    display: flex;
}

.redirect-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 30px;
}

.redirect-spinner::before,
.redirect-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.redirect-spinner::before {
    border-top-color: #667eea;
    animation: spin 1.5s linear infinite;
}

.redirect-spinner::after {
    border-right-color: #764ba2;
    animation: spin 2s linear infinite reverse;
}

.redirect-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .logo {
        width: 150px;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
  * {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  *::-webkit-scrollbar {
    display: none;
  }
}

* {
  -webkit-tap-highlight-color:transparent !important;
}