/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Background styling */
body {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Main register card */
.register-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Slightly wider for the registration form */
}
.password-wrapper {
    position: relative;
}

.password-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 16px;
}

.password-wrapper i:hover {
    color: #2c3e50;
}

/* Header styling */
.register-header {
    text-align: center;
    margin-bottom: 25px;
}

.register-header h2 {
    color: #1e3c72;
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 700;
}

.register-header p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Message Box for AJAX responses */
.message-box {
    display: none;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.message-box.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 5px rgba(41, 128, 185, 0.2);
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    resize: vertical; /* Allows resizing the textarea vertically only */
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 5px rgba(41, 128, 185, 0.2);
}

/* Button styling */
.register-btn {
    width: 100%;
    padding: 14px;
    background-color: #1e3c72;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.register-btn:hover {
    background-color: #2a5298;
}

.register-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Footer styling */
.register-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #7f8c8d;
}

.login-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}