/* --- Global Reset & Body Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* --- Common Elements --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.95rem;
}

/* --- Header/Navigation (index.html) --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #A31B1C; /* Primary Red */
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    height: 30px; /* Adjust size as needed for your image */
    margin-right: 10px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.register-button {
    border: 1px solid white;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.register-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-section {
    height: 600px; /* Example height */
    background: url('images/gallery_art.jpg') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    width: 500px;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 5px;
    overflow: hidden;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    font-size: 1rem;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.announcement-bar {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px;
    font-weight: bold;
}

/* --- Login & Success Page Styles (Reusable Container) --- */
.login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
    align-items: center;
}

.login-header {
    width: 100%;
    background-color: white;
    padding: 20px 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-header .logo {
    display: flex;
    align-items: center;
}

.login-header h1 {
    font-size: 1.8rem;
    color: #A31B1C;
    margin-left: 10px;
}

.login-box {
    display: flex;
    width: 100%;
    max-width: 850px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
}

.login-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fcfcfc;
    padding: 30px;
    border-right: 1px solid #eee;
}

.login-logo img {
    max-width: 80%;
    height: auto;
}

.login-form {
    flex: 1;
    padding: 40px;
}

.login-form h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.form-options a, .form-options label {
    color: #555;
}

.login-button {
    width: 100%;
    padding: 15px;
    background-color: #A31B1C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #8c1718;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
}

.register-text-link {
    color: #A31B1C;
    text-decoration: none;
    font-weight: bold;
}

/* Success Message Override */
.success-message {
    display: block;
    max-width: 500px;
    text-align: center;
    padding: 40px;
}

.success-message h2 {
    color: #5cb85c; /* Green color for success */
    margin-bottom: 15px;
}

.success-message p {
    margin-bottom: 15px;
    color: #444;
}

.small-text {
    font-size: 0.85rem;
    color: #999;
}


/* --- Type Selection Page Styles --- */

.type-selection-box {
    width: 100%;
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.type-selection-box h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.type-selection-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.type-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns */
    gap: 20px;
    margin-bottom: 40px;
}

.type-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    background-color: #fcfcfc;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #A31B1C;
}

.card-icon img {
    width: 60px; /* Size of the icon */
    height: 60px;
    margin-bottom: 15px;
}

.type-card h3 {
    color: #A31B1C;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.type-card p {
    font-size: 0.9rem;
    color: #777;
}

.back-to-login a {
    color: #555;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-to-login a:hover {
    color: #A31B1C;
}

.artist-card h3 { color: #A31B1C; }
.collector-card h3 { color: #337ab7; } 
.gallery-card h3 { color: #5cb85c; } 

/* --- General Registration Form Styles --- */
.registration-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.reg-box {
    width: 100%;
    max-width: 800px; /* Wider box for detailed forms */
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.reg-box h2 {
    text-align: center;
    color: #A31B1C;
    margin-bottom: 5px;
    font-size: 2rem;
}

.reg-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.registration-form fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.registration-form legend {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    padding: 0 10px;
}

/* Flex layout for side-by-side inputs */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex-grow: 1;
}

.half-width {
    flex-basis: 50%; /* Makes elements take up half the row */
}

.third-width {
    flex-basis: 33.333%; /* Makes elements take up a third of the row */
}

.form-group label {
    font-weight: normal; 
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"],
.registration-form input[type="tel"],
.registration-form input[type="url"],
.registration-form input[type="number"],
.registration-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    margin-top: 5px;
}

.registration-form textarea {
    resize: vertical;
}

.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-top: 20px;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #555;
    font-size: 0.9rem;
}

.radio-options {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.radio-options input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.radio-options label {
    display: inline;
    font-weight: normal;
}