/* General Body and Layout */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f4f8; /* Light background color */
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.registration-container {
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.form-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 48px rgba(0, 120, 215, 0.1);
    padding: 2.5rem;
    text-align: center;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0078d7;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Floating Label Form Group */
.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-group input {
    width: 100%;
    padding: 1.1rem 1rem 0.6rem 1rem;
    font-size: 1.05rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    background: #f8fafc;
    transition: border 0.2s, background 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #0078d7;
    background: #fff;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    color: #888;
    font-size: 1.05rem;
    pointer-events: none;
    background: transparent;
    transition: 0.2s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.85rem;
    color: #0078d7;
    background: #fff;
    padding: 0 0.3em;
}

/* Warning and Alert Messages */
.warning-message {
    background-color: #fffae6;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    color: #664d03;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.warning-message i {
    color: #ffc107;
    font-size: 1.5rem;
}

/* Alert messages from controller redirects (enhanced styling) */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    position: relative;
    text-align: left;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

/* New Submit Button (professional styling) */
.submit-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(to right, #007bff, #0056b3);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-top: 2rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    outline: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-button:hover {
    background: linear-gradient(to right, #0056b3, #004494);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #004494, #00377a);
}

.submit-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 480px) {
    .form-card {
        padding: 1.5rem;
    }
    .form-title {
        font-size: 1.5rem;
    }
    .form-subtitle {
        font-size: 0.9rem;
    }
    .form-group input {
        font-size: 0.95rem;
    }
    .form-group label {
        font-size: 0.95rem;
    }
    .form-group input:focus + label,
    .form-group input:not(:placeholder-shown) + label {
        top: -0.5rem;
        left: 0.6rem;
        font-size: 0.75rem;
    }
    .warning-message {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
    .warning-message i {
        font-size: 1.2rem;
    }
}