/* Self-Service Infrastructure Provisioning - Styles */

:root {
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --success-color: #107c10;
    --error-color: #d13438;
    --border-color: #d1d1d1;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #323130;
    --text-light: #605e5c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}

small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 12px;
}

fieldset {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 24px;
}

legend {
    font-weight: 600;
    font-size: 16px;
    padding: 0 8px;
}

/* Pattern Description */
.description {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background-color: #f0f6ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
}

.description ul {
    margin-top: 8px;
    margin-left: 20px;
}

.description li {
    margin-bottom: 4px;
}

/* Button Styles */
.form-actions {
    margin-top: 32px;
    text-align: center;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

button[type="submit"]:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* Status Messages */
.status-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.status-message a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.status-message.success {
    background-color: #dff6dd;
    border: 1px solid var(--success-color);
    color: #0e5a0e;
}

.status-message.error {
    background-color: #fde7e9;
    border: 1px solid var(--error-color);
    color: #a4262c;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-light);
    font-size: 14px;
}

/* Future: Login Section */
.login-section {
    text-align: center;
    padding: 60px 20px;
}

.login-section h2 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.login-section p {
    margin-bottom: 24px;
    color: var(--text-light);
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 32px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: var(--primary-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 24px;
    }

    header h1 {
        font-size: 24px;
    }

    button[type="submit"] {
        width: 100%;
    }
}
