/* Scalable Google App - Responsive Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #333;
}

h2 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #555;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.user-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.user-info p {
    margin: 0;
    font-size: 16px;
}

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

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

input[type="text"],
input[type="password"],
input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-right: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

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

button[type="submit"] {
    width: 100%;
    margin-top: 8px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-warning {
    background: #fffbea;
    color: #996600;
    border: 1px solid #ffe4a1;
}

.alert-success {
    background: #eeffee;
    color: #2d7a2d;
    border: 1px solid #cceecc;
}

.alert-info {
    background: #e7f3ff;
    color: #0066cc;
    border: 1px solid #b3d9ff;
}

/* Info Box */
.info-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 16px;
    margin-top: 24px;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Actions */
.actions {
    margin-top: 24px;
    text-align: center;
}

.link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
    .card {
        padding: 24px;
    }

    h1 {
        font-size: 24px;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-row .btn {
        margin-top: 12px;
    }

    .btn-primary {
        margin-right: 0;
        margin-bottom: 8px;
    }

    button[type="submit"],
    .btn-secondary {
        width: 100%;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}
