/* Registration form specific styling */

/* Center all authentication forms in their container */
.main-content > .content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px); /* Account for header/navbar height */
}

/* Login box styling */
.login-box {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.dark-theme .login-box {
    background-color: #333;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.2);
}

/* Auth links styling */
.auth-links {
    width: 100%;
    height: 20px;
    margin-bottom: 1rem;
    position: relative;
}

.auth-links:after {
    content: "";
    display: table;
    clear: both;
}

.auth-links a {
    color: #0d6efd;
    text-decoration: none;
}

.dark-theme .auth-links a {
    color: #ffff00;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Style for input fields */
.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Error styling */
.input-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.775rem;
    margin-top: 0.3rem;
    display: block;
    line-height: 1.1;
    word-wrap: break-word;
}

/* Dark theme overrides */
.dark-theme .input-group input::placeholder {
    color: white !important;
    opacity: 0.8;
}

.dark-theme .error-message {
    color: #ffff00 !important;
}

/* Ensure error messages appear below input fields */
.input-group .error-message {
    position: absolute;
    bottom: -1.8rem;
    left: 0;
    width: 100%;
}

/* Make sure input values are maintained on error */
.input-group input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Preserve values in non-error fields */
.input-group input:not(.error) {
    border-color: #ced4da;
}

/* Dark theme input styling */
.dark-theme .input-group input {
    background-color: #333 !important;
    color: white !important;
    border-color: #555 !important;
}

.dark-theme .input-group input:focus {
    border-color: #ffff00 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 0, 0.25) !important;
}

.dark-theme .input-group input.error {
    border-color: #dc3545 !important;
}

.dark-theme .input-group input.error:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Style for login/action buttons */
.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #c82333;
}

/* Ensure consistent text styling */
.logo-section h1 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.dark-theme .text-muted {
    color: #ccc !important;
} 