/* General page styling */
body {
    font-family: var(--font-family);
    background-color: #fffd96;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* The registration card */
#regForm {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

h4{
    margin: 0;
    padding: 0;
}

/* Input styling */
input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-size: 1rem;
}

input:focus {
    border-color: #5cb85c;
    outline: none;
    box-shadow: 0 0 5px rgba(92, 184, 92, 0.2);
}

/* Button styling */
button {
    width: 100%;
    padding: 12px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #4cae4c;
}

/* Success/Error message styling */
#message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.password-container {
    margin-bottom: 1rem;
    text-align: left;
}

#togglePass {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.show-pass {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.logIn{
    display: flex;
    width: 100%;
    flex-direction: row;
}

.logIn a {
    display: flex;          
    flex-direction: row;
    align-items: center;    
    gap: 8px;               
    text-decoration: none;  
    color: #333;            
    font-weight: 500;
}

.logIn img {
    width: 20px;   
    height: auto;  
    display: block; 
}

.logIn p {
    margin: 0;             
}

@media (max-width: 768px) {
    body {
        background-color: white;
    }

    #regForm {
        box-shadow: none;
        height: 100%;
        margin-top: 25px;
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }
}