:root {
    --primary-color: #610a86;
    --bg-color: #f4f4f4;
    --text-color: #333;
    --card-bg: #ffffff;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
}

.psi-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
}

.psi-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.psi-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.psi-subtitle {
    color: #666;
    margin-bottom: 30px;
}

#errormessage {
    color: #dc3545;
    font-weight: bold;
    height: 24px;
    margin-top: 15px;
}

.input-group {
    margin-bottom: 20px;
}

#group {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

#group:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #4d076b;
}

#public-groups {
    margin-top: 30px;
    text-align: left;
}

#public-groups h2 {
    font-size: 1.2rem;
    color: #555;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#public-groups-table {
    width: 100%;
    border-collapse: collapse;
}

#public-groups-table tr {
    border-bottom: 1px solid #eee;
}

#public-groups-table td {
    padding: 10px 0;
}

#public-groups-table tr a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    display: block;
}

#public-groups-table tr a:hover {
    text-decoration: underline;
}

.signature {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    padding: 20px 0;
}

.signature a {
    color: #777;
    text-decoration: none;
}

.signature a:hover {
    color: var(--primary-color);
}

@media only screen and (max-device-width: 768px) {
    .psi-card {
        padding: 25px;
    }
    #group {
        padding: 12px;
    }
}
