www_projectmycelium_io/poc_threefold/static/css/login_test.css

368 lines
8.3 KiB
CSS
Raw Permalink Normal View History

2024-11-08 15:31:50 +00:00
<style>
.container {
max-width: 800px;
margin: 2rem auto;
padding: 0 1rem;
}
.card {
background: white;
border-radius: 8px;
padding: 2rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.status {
padding: 1rem;
border-radius: 4px;
margin: 1rem 0;
text-align: center;
font-weight: bold;
}
.status.authenticated {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.status.unauthenticated {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.actions {
display: flex;
gap: 1rem;
margin: 1rem 0;
justify-content: center;
}
.btn-identify, .btn-clear, .btn-list, .btn-generate {
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.2s;
}
.btn-identify {
background-color: #007bff;
color: white;
}
.btn-identify:hover {
background-color: #0056b3;
}
.btn-clear {
background-color: #dc3545;
color: white;
}
.btn-clear:hover {
background-color: #c82333;
}
.btn-list {
background-color: #17a2b8;
color: white;
width: 100%;
}
.btn-list:hover {
background-color: #138496;
}
.btn-generate {
background-color: #28a745;
color: white;
margin-top: 1rem;
width: 100%;
}
.btn-generate:hover {
background-color: #218838;
}
.key-info {
background-color: #f8f9fa;
padding: 1.5rem;
border-radius: 4px;
margin: 1.5rem 0;
color: #2c3e50;
}
.key-details {
margin-top: 1rem;
}
.warning-message {
background-color: #fff3cd;
color: #856404;
padding: 1rem;
border-radius: 4px;
margin: 1rem 0;
border: 1px solid #ffeeba;
}
.public-key {
word-break: break-all;
font-family: monospace;
background: #ffffff;
padding: 1rem;
border-radius: 4px;
border: 1px solid #dee2e6;
color: #2c3e50;
margin-top: 1rem;
}
.test-actions {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid #dee2e6;
color: #2c3e50;
}
.test-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.test-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.test-group input {
padding: 0.5rem;
border: 1px solid #ced4da;
border-radius: 4px;
color: #2c3e50;
background: #ffffff;
}
.test-group button {
padding: 0.5rem;
background-color: #28a745;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.test-group button:hover {
background-color: #218838;
}
.set-result, .retrieved-value {
margin-top: 0.5rem;
padding: 0.5rem;
border-radius: 4px;
font-family: monospace;
}
.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
padding: 0.5rem;
border-radius: 4px;
}
.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
padding: 0.5rem;
border-radius: 4px;
}
.info {
background-color: #e2e3e5;
color: #383d41;
border: 1px solid #d6d8db;
padding: 0.5rem;
border-radius: 4px;
}
.all-values {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 1rem;
}
.stored-value {
background: #ffffff;
border: 1px solid #dee2e6;
border-radius: 4px;
padding: 1rem;
}
.stored-key {
font-weight: bold;
color: #2c3e50;
margin-bottom: 0.5rem;
}
.stored-value-content {
font-family: monospace;
background: #f8f9fa;
padding: 0.5rem;
border-radius: 4px;
margin: 0.5rem 0;
word-break: break-all;
}
.encryption-status {
font-size: 0.875rem;
color: #6c757d;
}
.status-icon {
margin-right: 0.5rem;
}
.encrypted .encryption-status {
color: #28a745;
}
.not-encrypted .encryption-status {
color: #dc3545;
}
.no-values {
text-align: center;
color: #6c757d;
padding: 1rem;
background: #f8f9fa;
border-radius: 4px;
}
/* Modal Styles */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
backdrop-filter: blur(3px);
}
.modal-container {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
z-index: 1001;
width: 90%;
max-width: 400px;
}
.modal-header {
margin-bottom: 1.5rem;
text-align: center;
}
.modal-description {
color: #666;
margin-top: 0.5rem;
font-size: 0.9rem;
}
.modal-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-weight: bold;
color: #333;
}
.form-group input {
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
transition: border-color 0.2s;
}
.form-group input:focus {
border-color: #007bff;
outline: none;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.modal-buttons {
display: flex;
justify-content: flex-end;
gap: 1rem;
margin-top: 1.5rem;
}
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
transition: all 0.2s;
font-weight: 500;
}
.btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.btn-primary {
background-color: #007bff;
color: white;
}
.btn-primary:hover:not(:disabled) {
background-color: #0056b3;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover:not(:disabled) {
background-color: #545b62;
}
.error-message {
color: #dc3545;
font-size: 0.875rem;
margin-top: 0.5rem;
display: none;
padding: 0.5rem;
background-color: #fff5f5;
border-radius: 4px;
border: 1px solid #ffebee;
}
</style>