/* OAuth Server Public Styles */
.oauth-authorization-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.oauth-authorization-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.oauth-client-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.oauth-client-info h3 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.oauth-scope-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.oauth-scope-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.oauth-scope-list li:last-child {
    border-bottom: none;
}

.oauth-scope-name {
    font-weight: bold;
    color: #333;
}

.oauth-scope-description {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.oauth-authorization-buttons {
    text-align: center;
    margin-top: 30px;
}

.oauth-authorization-buttons .button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
}

.oauth-device-code-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.oauth-device-code {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #0073aa;
    background: #f0f8ff;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border: 2px dashed #0073aa;
}

.oauth-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #c62828;
    margin: 20px 0;
}

.oauth-success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #2e7d32;
    margin: 20px 0;
}

.oauth-loading {
    text-align: center;
    padding: 20px;
}

.oauth-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #0073aa;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.oauth-user-consent {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.oauth-user-consent h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.oauth-user-consent p {
    margin: 0;
    color: #856404;
}

@media (max-width: 600px) {
    .oauth-authorization-form,
    .oauth-device-code-form {
        margin: 20px;
        padding: 20px;
    }
    
    .oauth-device-code {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .oauth-authorization-buttons .button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

