/* Custom Styles */
.root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.site-header {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .logo img {
    height: 40px;
}

.site-branding .name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
}

.site-menu a {
    margin-left: 15px;
    text-decoration: none;
    color: #007bff;
}

.site-menu a:hover {
    text-decoration: underline;
}

/* Main Content Styles */
.site-body {
    flex: 1;
}

.site-content {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.page-block {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
}
.page-block.narrow {
    max-width: 600px;
    margin: auto;
}
.page-block h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Form Styles */
.register-form, .login-form {
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.field-password {
    position: relative;
}

.field-password .toggle-password {
    padding: 2px 8px;
    position: absolute;
    right: 0;
    text-decoration: none;
}

/* Button Styles */
.btn-primary {
    width: 100%;
    padding: 0.5rem;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Footer Styles */
.site-footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    text-align: center;
    margin-top: auto;
}

.error-generic {
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    font-size: 14px;
    display: none;
}
.error-generic.active {
    display: block;
}
/* register form */
.register-form, .register-result {
    display: none;
}

.register-form.active, .register-result.active {
    display: block;
}

/* Form login */
.login-form, .login-result {
    display: none;
}

.login-form.active, .login-result.active {
    display: block;
}



/* form result */
.form-result {
    text-align: center;
    padding: 10px;
}

.form-result .result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}
.form-result.success .result-icon svg {
    fill: #1fb141;
    height: 128px;
    width: 128px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-branding {
        margin-bottom: 10px;
    }

    .site-menu {
        margin-top: 10px;
    }

    .page-block {
        padding: 20px;
    }

    .register-form, .login-form {
        padding: 0 0;
    }
}