@import url('variables.css');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 24px 32px;
    margin: 16px auto;
    max-width: 480px;
    border: 1px solid var(--border-color);
}

.header-container {
    text-align: center;
    margin-bottom: 20px;
}

.company-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 12px;
    display: block;
    object-fit: contain;
}

.header-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0;
}

.auth-step {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.auth-step.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(80, 4, 224, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 10px;
}

.step-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}

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

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.875rem;
    display: block;
}

.form-control {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(80, 4, 224, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.btn-custom {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-custom:active {
    transform: translateY(0);
}

.btn-primary-custom {
    background: var(--primary-color);
    color: white;
}

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

.btn-success-custom {
    background: var(--success-color);
    color: white;
}

.btn-success-custom:hover {
    background: var(--success-color);
    color: white;
}

.alert {
    border-radius: 6px;
    border: 1px solid;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-color);
    color: var(--primary-color);
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.loader {
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    border-top: 2px solid var(--primary-color);
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Collapsible Kurum Kodu */
.tenant-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 14px;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.tenant-toggle:hover {
    border-color: var(--primary-color);
}

.tenant-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-toggle-icon {
    background: var(--primary-color);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.tenant-toggle-text {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.tenant-toggle-text strong {
    font-weight: 600;
}

.tenant-toggle-text small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.tenant-toggle-arrow {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.tenant-toggle[aria-expanded="true"] .tenant-toggle-arrow {
    transform: rotate(180deg);
}

.tenant-content {
    padding: 16px;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.btn-clear-tenant {
    background: #6b7280;
    color: white;
}

.btn-clear-tenant:hover {
    background: #4b5563;
    color: white;
}

@media (max-width: 768px) {
    .main-container {
        margin: 10px;
        padding: 20px;
        max-width: 100%;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .company-logo {
        height: 40px;
    }
}
