/* Main content area */
.main-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 15vh;
}

.logo-subtext1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: #ccc 2px 2px 2px;
  }

  .logo-subtext2 {
    font-size: 1.75rem;
    font-weight: 330;
  }


.status-block{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* margin-bottom: 1.5rem; */
}

.loader {
    display: none;
    width: 48px;
    height: 48px;
    border: 5px solid #0a4194;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

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

/* Auth Container - Two column layout */
.auth-container {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 720px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: #ffffff;
}

/* Left visual panel */
.visual-panel {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #ffffff;
}
.visual-panel .visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 8s ease;
}
.visual-panel:hover .visual-image {
    transform: scale(1.08);
}

/* Right Panel - Forms */
.form-panel {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.form-title {
    font-size: 1.15rem;
    /* font-weight: 700; */
    color: var(--primary);
}

.form-header-text {
    /* background: red; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    background: var(--surface-alt);
    border-radius: 8px;
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    margin-bottom: 5px;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: var(--danger);
}

.email-block-buttons{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 33px;
}

.forgot-password{
    color: #0a4194;
    background: none;
    border: none;
    /* color: var(--accent); */
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0 5px;
    /* text-decoration: underline; */
    font-weight: 600;
    text-decoration: none;
}

.password-block-buttons{
    display: flex;
    justify-content: space-between;
}

.back-btn{
    width: 150px;
    background: white;
    color: #0a4194;
    padding: 1rem 2rem;
    border: 1px solid #0a4194;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.switch-btn{
    background: none;
    border: none;
    color: #0a4194;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0 5px;
    text-decoration: underline;
    font-weight: 600;
    text-decoration: none;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    width:  150px;
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.reg-submit-button {
    background: var(--gradient);
    width: 150px;
    /* background: white; */
    color: #ffffff;
    padding: 1rem 2rem;
    border: 1px solid #0a4194;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reg-submit-button:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); */
}

.reg-submit-button:disabled {
    /* opacity: 0.6; */
    background: #fff;
    color: grey;
    border: 1px solid grey;
    cursor: not-allowed;
    transform: none;
}

/* reg btns*/
.reg-back-btn {
    width: 150px;
    background: white;
    color: #0a4194;
    padding: 1rem 2rem;
    border: 1px solid #0a4194;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reg-back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.reg-next-btn:disabled {
    /* opacity: 0.6; */
    color: grey;
    cursor: not-allowed;
    transform: none;
}

.reg-email-block-buttons{
    display: flex;
    justify-content: center;
    margin-top: 25px;  /* Changed from 0px to 25px */
    margin-bottom: 10px;
    /* padding-bottom: 20px; */
    /* padding-top: 10px; */
}

.reg-psw-block-buttons{
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}

/* Submit Button */
.next-btn {
    width: 150px;
    background: white;
    color: #0a4194;
    padding: 1rem 2rem;
    border: 1px solid #0a4194;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    /* margin-bottom: 1.5rem; */
}

.next-btn:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 5px 5px rgba(140, 13, 156, 0.3); */
}

.next-btn:disabled {
    opacity: 0.6;
    color: grey;
    cursor: not-allowed;
    transform: none;
    border: 1px solid grey;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Social Login */
.social-buttons {
    display: grid;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.social-button:hover {
    border-color: var(--accent);
    background: var(--surface-alt);
}

.social-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-button {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: 1px solid #dddddd;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 35px 0 5px 0;
}

.google-button:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.google-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%234285f4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path fill="%2334a853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path fill="%23fbbc05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path fill="%23ea4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>') center/contain no-repeat;
}

/* Footer Links */
.form-footer {
    display: flex;
    justify-content: center;
    flex-direction: column ;
    text-align: center;
    margin-top: 25px;
    /* color: var(--text-secondary); */
    font-size: 0.875rem;
}

.form-footer a {
    /* color: var(--accent); */
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Back to Home */
.back-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
    z-index: 10;
}

.back-link:hover {
    color: var(--primary);
}

/* Success Message */
.success-message {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: none;
}

.status-message {
    color: rgb(0, 0, 0);
    padding: 1rem;
    font-size: 0.875rem;
    display: none;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.2rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.stored-users-dropdown {
    position: relative;
    margin-bottom: 1rem;
}

.stored-users-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.stored-users-select:hover {
    border-color: #cbd5e1;
}

.stored-users-select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
}

.remove-user-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0 0.5rem;
    font-size: 0.9rem;
}

.remove-user-btn:hover {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .auth-container {
        max-width: 400px;
        grid-template-columns: 1fr;
    }

    .visual-panel {
        min-height: 160px;
    }
    
    .form-panel {
        padding: 2rem;
    }
    
    .back-link {
        position: static;
        margin-bottom: 1rem;
        justify-content: flex-start;
        padding: 1rem;
    }
}