:root {
    --primary: #FF520D;
    --secondary: #FFA726;
    --text: #424242;
    --background: #ffffff;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --pattern: repeating-linear-gradient( -45deg, #eeefea 0px, #eeefea 2px, transparent 2px, transparent 4px );
}
@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/agency fb cyrillic.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    background: var(--pattern), var(--background);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.registration-container {
    background: var(--surface);
    max-width: 640px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid var(--border);
}

.brand-header {
    padding: 1.5rem 1rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(255,82,13,0.05) 0%, rgba(255,82,13,0) 100%);
}

.brand-logo {
    width: 180px;
    height: auto;
}

.form-wrapper {
    padding: 1.5rem 2rem;
}

.form-title {
    font-size: 1.5rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.875rem;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--surface);
    color: var(--text);
}

    input:focus, select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(255,82,13,0.1);
    }

.file-upload {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    background: rgba(255,82,13,0.03);
    margin-top: 0.5rem;
}

.cropper-container {
    max-width: 500px;
    margin: 1rem auto;
    position: relative;
}

.cropper-view-box {
    outline: 2px dashed var(--primary);
    outline-offset: -2px;
}

.resolution-warning {
    color: var(--primary);
    display: none;
    font-size: 0.9rem;
    text-align: center;
    margin: 0.5rem 0;
}

.checkbox-group {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

    .submit-btn:hover {
        opacity: 0.9;
    }

.original-photo-input {
    display: none;
}

@media (max-width: 480px) {
    .registration-container {
        border-radius: 12px;
    }

    .form-wrapper {
        padding: 1rem;
    }

    .brand-logo {
        width: 140px;
    }

    .form-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    input, select {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }

    .file-upload {
        padding: 0.75rem;
    }

}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
}

.modal-icon {
    width: 80px;
    margin: 0 auto 1rem;
    display: block;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--text);
    margin-bottom: 1.5rem;
}
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.loader {
    margin-left: 48px;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF520D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #424242;
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.file-upload.dragover {
    border-color: #FF520D;
    background: rgba(255, 82, 13, 0.05);
}

.drop-instruction {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
}
