/* Vercel-inspired styles for GitHub App Registration */

/* Base styling */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    margin: 0;
    padding: 0;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

/* Container and layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

p {
    color: #a4a4a4;
    margin: 0 0 1rem 0;
}

a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

a:hover {
    text-decoration-color: #ffffff;
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
    font-size: 1.5rem;
}

input[type="text"],
input[type="url"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: #0070f3;
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

input[type="text"]::placeholder,
input[type="url"]::placeholder {
    color: #666666;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    min-height: 44px;
}

.btn-primary {
    background: #0070f3;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #0051cc;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #333333;
    color: #666666;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-success {
    background: #04a121;
    color: #000000;
}

.btn-success:hover:not(:disabled) {
    background: #04a121;
    transform: translateY(-1px);
}

.btn-success:disabled {
    background: #333333;
    color: #666666;
    cursor: not-allowed;
    transform: none;
}

/* Header with icon */
.header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.75rem;
    margin-top: 0.7rem;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Info sections */
.info-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #a0a0a0;
    font-weight: 500;
    min-width: 120px;
}

.info-value {
    color: #ffffff;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

/* Error states */
.error-section {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-message {
    color: #fca5a5;
    margin: 0;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-error-message {
    color: #fca5a5;
    margin: 0;
}

/* Success states */
.success-section {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.success-message {
    color: #86efac;
    margin: 0;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Responsive design */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .info-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .info-label {
        min-width: auto;
    }
}

/* Form layout */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.input-group input {
    flex: 1;
}

/* Status message */
.status-message {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a4a4a4;
    font-size: 0.875rem;
}

/* Help text */
.help-text {
    font-size: 0.8125rem;
    color: #a4a4a4;
    margin-top: 0.25rem;
}

.highlight {
    color: #cdcaca;
    font-weight: 600;
}

.highlight-code {
    font-family: 'Courier New', Consolas, Monaco, 'Lucida Console', monospace;
    background-color: #17191c;
    color: #fcfcfc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid #4a5568;
    white-space: nowrap;
}


/* Progress indicator styles */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .progress-number {
    background: #0070f3;
    border-color: #0070f3;
}

.progress-label {
    font-size: 0.75rem;
    color: #a4a4a4;
    font-weight: 500;
    text-align: center;
    min-width: 4rem;
    transition: color 0.3s ease;
}

.progress-step.active .progress-label {
    color: #ffffff;
}

.progress-line {
    width: 3rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 1rem;
    margin-top: -1rem;
}

/* Responsive progress indicator */
@media (max-width: 640px) {
    .progress-indicator {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }

    .progress-line {
        width: 2rem;
        margin: 0 0.5rem;
    }

    .progress-label {
        font-size: 0.625rem;
        min-width: 3rem;
    }

    .progress-number {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

.reset-tooltip {
    position: relative;
}

.reset-tooltip::after {
    content: 'Reset and clear data';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 10px;
    margin-left: -75px;
    width: 150px;
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.reset-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 5px;
    margin-left: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #000000;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10000;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.reset-tooltip:hover::after,
.reset-tooltip:hover::before {
    opacity: 1;
}
