/* General Body & Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem; /* Added margin for single column */
}

.card h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    color: #005a9c;
}

/* Header */
header {
    background-color: #005a9c;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 { margin: 0; font-size: 1.5em; }
.user-info { display: flex; align-items: center; gap: 1rem; }

/* --- THIS IS THE FLIP CODE --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    perspective: 1000px;
}
.auth-box { position: relative; width: 320px; height: 350px; transform-style: preserve-3d; transition: transform 0.8s; }
.auth-form {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden;
    background: white; padding: 2rem; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
#login-form { transform: rotateY(0deg); }
#registration-form { transform: rotateY(180deg); }
.auth-container.show-register .auth-box { transform: rotateY(180deg); }
/* --- END OF FLIP CODE --- */

.auth-form h2 { text-align: center; margin-bottom: 1.5rem; color: #005a9c; }
.auth-form p { font-size: 0.9em; text-align: center; margin-top: 1rem; }
.auth-form a { color: #007bff; text-decoration: none; }
.auth-form a:hover { text-decoration: underline; }

/* --- THIS IS THE PASSWORD REVEAL CODE --- */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}
.password-wrapper input {
    margin-bottom: 0; 
}
.password-wrapper i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}
/* --- END OF PASSWORD REVEAL CODE --- */

/* (All other styles for forms, buttons, tables, etc., go here) */
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}
button {
    background-color: #007bff;
    color: white; border: none; padding: 0.8rem 1.5rem;
    border-radius: 4px; cursor: pointer; font-size: 1em; width: 100%;
    transition: background-color 0.2s;
}
/* ... etc. ... */