:root {
    --primary-color: #1e3a8a; /* Deep blue */
    --secondary-color: #3b82f6; /* Bright blue */
    --text-color: #1f2937;
    --card-bg: rgba(255, 255, 255, 0.98);
    --input-bg: #f9fafb;
    --border-color: #d1d5db;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-bg: #d1fae5;
    --error-bg: #fee2e2;
}

[data-theme="dark"] {
    --primary-color: #1e40af;
    --secondary-color: #60a5fa;
    --text-color: #f9fafb;
    --card-bg: rgba(31, 41, 55, 0.98);
    --input-bg: #374151;
    --border-color: #4b5563;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --success-bg: #065f46;
    --error-bg: #991b1b;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', 'Arial', sans-serif;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: none;
}

.register-card {
    width: 100%;
    max-width: 900px; /* Wide for landscape layout */
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.register-container {
    display: flex;
    flex-direction: row;
}

.register-content {
    flex: 1; /* Smaller width */
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-inner {
    animation: fadeInText 0.5s ease-in;
}

.register-content .logo-icon {
    color: #ffffff;
    opacity: 0.9;
    animation: fadeInText 0.5s ease-in;
}

.register-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.register-content h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ffffff;
    opacity: 0.8;
}

.register-content p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 250px; /* Narrow for balance */
    animation: fadeInText 0.5s ease-in 0.2s;
}

.register-form-wrapper {
    flex: 2; /* Larger width for form */
    padding: 3rem;
}

.register-form-wrapper h4 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.register-form .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group-text {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--text-color);
    padding: 0.85rem 1.2rem;
    transition: border-color 0.3s ease;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0 12px 12px 0;
    padding: 0.85rem 1.2rem;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    outline: none;
    background-color: #ffffff;
}

.eye-toggle-btn {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 0.85rem 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.eye-toggle-btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.eye-toggle-btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.text-danger {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    color: #ef4444;
}

.text-primary {
    color: var(--secondary-color);
    font-weight: 500;
}

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

/* Modal Styles */
.modal-dialog {
    max-width: 500px; /* Consistent width for both pages */
}

.modal-content {
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

.modal-footer .btn-primary {
    background: var(--secondary-color);
    padding: 0.75rem 1.5rem;
}

.modal-footer .btn-primary:hover {
    background: var(--primary-color);
}

.btn-close {
    filter: invert(1);
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .register-card {
        max-width: 90%;
    }
    .register-container {
        flex-direction: column;
    }
    .register-content, .register-form-wrapper {
        padding: 1.5rem;
    }
    .register-content h1 {
        font-size: 1.75rem;
    }
    .register-content .logo-icon {
        font-size: 1.5rem;
    }
    .register-content p {
        font-size: 1rem;
        max-width: 100%;
    }
    .register-form-wrapper h4 {
        font-size: 1.3rem;
    }
    .modal-dialog {
        margin: 1rem;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .col-md-6 {
        margin-bottom: 1rem;
    }
}

.info-label-btn {
  background-color: #3b82f6;
  color: #fff;
  border: 1px solid #2563eb;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

.info-label-btn i {
  font-size: 0.65rem;
  line-height: 1;
}
.info-label-btn:hover {
  background-color: #facc15;
  color: #000;
  border-color: #eab308;
}