body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 950px;
    height: 950px;
    background-image: url('/images/white_logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1;
    filter: blur(7px);
    pointer-events: none;
    z-index: 0;
}

.register-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    position: relative;
    min-height: 400px;
    transition: min-height 0.5s ease;
    overflow: hidden;
}

.register-container.expanded {
    min-height: 800px;
    height: auto;  /* Added height auto */
    max-height: 90vh;  /* Added max-height */
    overflow-y: auto;  /* Added overflow-y */
}

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

.header h1 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 2.2rem;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

.role-selection-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.role-selection-container.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    display: none;
}

.role-selection {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.role-btn {
    flex: 1;
    padding: 2rem;
    border: 2px solid #1e3c72;
    border-radius: 8px;
    background: white;
    color: #1e3c72;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.role-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.role-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #1e3c72;
    color: white;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
}

.register-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
    margin-top: 1rem;
}

.error-message {
    color: #dc2626;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.login-link {
    text-align: center;
    margin-top: 1rem;
}

.login-link a {
    color: #2563eb;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.registration-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;  /* Changed from 100% to auto */
    min-height: 100%;  /* Added min-height */
    padding: 2.5rem;
    background: white;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    display: none;
    overflow-y: auto;  /* Added overflow-y */
}

.registration-form.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.registration-form .form-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;  /* Added margin-bottom */
}

.back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: #1e3c72;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-3px);
}

/* Loading Popup Styles */
.loading-popup .swal2-html-container {
    margin: 2rem 0 !important;
}

.loading-content {
    text-align: center;
}

.loading-content i {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.loading-content p {
    margin: 0.5rem 0;
    color: #374151;
}

.loading-note {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}
.swal2-confirm-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}