/*
 * Minimalist styling for the Ping AI tool.
 *
 * This stylesheet uses a modern, clean design with
 * soft colors and rounded edges. All elements are
 * designed to be responsive and accessible on both
 * desktop and mobile devices.
 */

/* Reset some basic elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(145deg, #f8fbff 0%, #eef3f8 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

header {
    margin-bottom: 40px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111;
}

header p {
    font-size: 1rem;
    color: #555;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 100%;
    padding: 30px;
}

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

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #0069d9;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

nav {
    margin-top: 20px;
    text-align: center;
}

nav a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

nav a:hover {
    text-decoration: underline;
}

.settings-form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.settings-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.settings-form .form-row label {
    flex: 0 0 200px;
    padding-right: 10px;
    font-weight: bold;
}

.settings-form .form-row input {
    flex: 1;
}

.settings-form button {
    margin-top: 20px;
}

.footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}