/* General body and font styles */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #e0e0e0;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container for the registration card */
.container {
    max-width: 450px;
    width: 90%;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    border-radius: 20px;
    box-shadow: 
        10px 10px 30px #a3a3a3, 
        -10px -10px 30px #ffffff;
    border: 1px solid #dcdcdc;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    transition: transform 0.5s ease;
}

.container:hover {
    transform: perspective(1000px) rotateY(2deg) rotateX(1deg);
}

/* Heading with subtle 3D effect */
.container h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    border-bottom: none; /* Removed from the original */
    padding-bottom: 0; /* Removed from the original */
}

/* Form styles with inset 3D effect */
.container form {
    padding: 15px;
    background: #e0e0e0;
    border-radius: 15px;
    box-shadow: 
        inset 5px 5px 10px #bebebe, 
        inset -5px -5px 10px #ffffff;
}

/* Common input styles with inset effect */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    background: #e0e0e0;
    border-radius: 10px;
    box-shadow: 
        inset 3px 3px 7px #bebebe, 
        inset -3px -3px 7px #ffffff;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    box-shadow: 
        inset 2px 2px 5px #bebebe, 
        inset -2px -2px 5px #ffffff,
        0 0 0 2px #007bff; /* subtle focus ring */
}

/* Submit button with raised 3D effect */
input[type="submit"] {
    background: #007bff;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    font-weight: bold;
    box-shadow: 
        6px 6px 12px #a3a3a3, 
        -6px -6px 12px #ffffff;
    transition: all 0.2s ease;
}

input[type="submit"]:hover {
    background: #0056b3;
    box-shadow: 
        2px 2px 5px #a3a3a3, 
        -2px -2px 5px #ffffff;
    transform: translateY(2px);
}

/* Link styles */
a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

a:hover {
    text-decoration: underline;
    color: #0056b3;
}

hr {
    border: 0;
    height: 1px;
    background-color: #cacaca;
    margin: 25px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Message box styles with a "neumorphic" feel */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 
        inset 3px 3px 7px #bebebe, 
        inset -3px -3px 7px #ffffff;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}