.register-modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    position: relative;
    /* This part is vital: */
    max-height: 85vh; 
    overflow-y: auto; 
    color: white;
    box-shadow: 0px 0px 20px #e5e5e5;
}

/* Style for labels inside the dark modal */
.register-modal-content label {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #ccc;
    text-align: left;
}

.register-modal-content h2 {
    color: #fff;
}

/* Ensure inputs take full width */
.register-modal-content input[type="text"],
.register-modal-content input[type="email"],
.register-modal-content input[type="password"],
.register-modal-content input[type="number"],
.register-modal-content input[type="date"],
.register-modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
    box-sizing: border-box; /* Prevents padding from breaking width */
}

input[type="submit"] {
	 background-color: initial;
	  background-image: linear-gradient(-180deg, #333, #444, #555);
	  border-radius: 5px;
	  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
	  color: #FFFFFF;
	  cursor: pointer;
	  height: 44px;
	  outline: 0;
	  pointer-events: auto;
	  position: relative;
	  text-align: center;
	  touch-action: manipulation;
	  user-select: none;
	  -webkit-user-select: none;
	  white-space: nowrap;
	  border: 0;
	  width: 100%;
	  margin-top: 10px;
}

input[type=submit]:hover {
  background: #666;
}

/* Container for the clickable boxes */
.account-selection-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin: 40px auto;
    width: 90%;
    max-width: 800px;
}

/* The clickable boxes */
.account-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 20px 30px;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 25px;
}

.account-card:hover {
    border-color: #00D775;
    background: rgba(0, 215, 117, 0.05);
    transform: scale(1.02);
}

.card-icon i {
    font-size: 40px;
    color: #00D775;
    min-width: 60px;
    text-align: center;
}

.card-text-content h3 {
    margin: 0 0 5px 0;
    color: #00D775;
    font-size: 22px;
}

.card-text-content p {
    margin: 0;
    font-size: 15px;
    color: #ccc;
    line-height: 1.4;
}

.card-arrow {
    font-size: 24px;
    color: #444;
    transition: color 0.3s;
}

.account-card:hover .card-arrow {
    color: #00D775;
}

.card-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #00D775;
    border-radius: 5px;
    font-weight: bold;
}

/* Dark Background Overlay for Modals */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Darkens everything else */
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.close-modal {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-modal:hover { color: white; }

.register-modal-content::-webkit-scrollbar {
    color: #999;
    width: 8px;
}

.register-modal-content::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 8px;
}