/* Authentication Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    padding: 2rem;
}

.auth-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
}

.auth-box.registration {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-family: var(--font-header);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.auth-header p {
    color: var(--dark-grey);
}

/* Progress Bar */
.progress-bar {
    margin: 2rem 0;
    position: relative;
}

.progress {
    height: 4px;
    background: var(--primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark-grey);
    position: relative;
    z-index: 1;
}

.step.active {
    border-color: var(--primary);
    color: var(--primary);
}

.step.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Form Styles */
.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--black);
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--dark-grey);
}

.input-group i.toggle-password {
    left:auto;
    right: 1rem;
}

.input-group input:not(input[type='checkbox']),
.input-group select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--grey);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 97, 129, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    color: var(--dark-grey);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--grey);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Document Upload Styles */
.document-section {
    background: var(--grey);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.document-section h3 {
    font-family: var(--font-header);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.document-info {
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.file-upload {
    position: relative;
    margin-bottom: 0.5rem;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--grey);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--primary);
}

.file-label i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.file-preview {
    margin-top: 1rem;
    display: none;

    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--dark-grey);
    font-size: 0.85rem;
}

.remove-file{
    padding:0.3em 0.5em;
    border: 1px solid #ddd;
}

/* Checkbox Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.t_c_group{
    font-size:0.9em;
    margin-top:2em;
}

.t_c_group a{
    color: var(--primary);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button-group button {
    flex: 1;
}

.kyc-auth .tooltip-message {
  visibility: hidden;
  min-width: 150px;
  width: 35vw;
  background-color: var(--primary);
  color: #fff;
  /* text-align: center; */
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 100;
  /* bottom: 125%; */
  top: 0;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 100;
  line-height: 1.2;
}

.kyc-auth .tooltip-message strong{
    font-weight: 600;
}

.kyc-auth .fa-question-circle{
    position: relative;
}

.kyc-auth .fa-question-circle:hover .tooltip-message {
  visibility: visible;
  opacity: 1;
}

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .kyc-auth .tooltip-message {
        width: 60vw;
    }

    .auth-container {
        padding: 1rem;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .auth-box.registration {
        max-width: 100%;
    }

    .auth-logo {
        height: 60px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .input-group input,
    .input-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.7rem 1rem 0.7rem 2.5rem;
    }

    .document-section {
        padding: 1rem;
    }

    .file-label {
        padding: 1.5rem 1rem;
    }

    .file-label i {
        font-size: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 380px) {
    .auth-box {
        padding: 1rem;
    }

    .auth-header {
        margin-bottom: 1.5rem;
    }

    .progress-bar {
        margin: 1.5rem 0;
    }

    .step {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .input-group i {
        font-size: 0.9rem;
    }
}

/* Fix for iOS input zoom */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    select {
        font-size: 16px !important;
    }
}

/* Landscape Mode Optimization */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .auth-container {
        align-items: flex-start;
        padding: 1rem;
        min-height: auto;
    }

    .auth-box {
        margin: 1rem auto;
    }

    .auth-logo {
        height: 50px;
        margin-bottom: 1rem;
    }

    .progress-bar {
        margin: 1rem 0;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}
