/* --- General Page Styling --- */
body {
    display: flex;
    align-items: center;      
    justify-content: center;   
    min-height: 100vh;        
    margin: 0;                
    background-color: #f8f9fa;
    font-family: 'Quicksand', sans-serif;
}

/* --- Form Container --- */
.register-container {
    display: flex;
    width: 500px; 
    max-width: 95%;           
    border-radius: 30px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
    margin: 20px auto;         
}

.register-form {
    flex: 1;
    padding: 35px;
}

/* --- Typography --- */
.register-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #303b59;
    line-height: 1.4;
    text-align: center;
}

.form-label {
    font-weight: 600;
    color: #303b59;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: inline-block;
}

/* --- Input Fields & Selects --- */
.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: #9351ee;
    box-shadow: 0 0 0 3px rgba(147, 81, 238, 0.25);
    outline: none;
}

/* --- Password Requirements List --- */
.password-requirements {
    list-style-type: none;
    padding: 12px;
    background-color: #f1f3f5;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: #495057;
    border-left: 4px solid #9351ee;
}

.password-requirements li {
    margin-bottom: 3px;
    position: relative;
    padding-left: 18px;
}

.password-requirements li::before {
    content: "•";
    color: #9351ee;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- Password Wrapper & Visibility Toggle --- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #303b59;
}

/* --- Strength Feedback Outlines --- */
/* Using !important to ensure these override the default Bootstrap/Focus borders */
.strength-weak { 
    border: 2px solid #dc3545 !important; 
}

.strength-medium { 
    border: 2px solid #ffc107 !important; 
}

.strength-strong { 
    border: 2px solid #198754 !important; 
}

/* --- Mismatch & Validation Text --- */
.mismatch {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

.validation-text {
    font-size: 0.75rem;
    display: block;
    font-weight: 500;
}

/* --- Submit Button --- */
.btn-register {
    background-image: linear-gradient(to right, #9351ee, #4b5df1);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

/* --- Footer Section --- */
.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #303b59;
}

.footer-text a {
    text-decoration: none;
    font-weight: 600;
    color: #4b5df1;
}

.footer-text a:hover {
    text-decoration: underline;
}