* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 480px;
    perspective: 1000px;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow:
            0 35px 70px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 35px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-28px) scale(0.85);
    color: #667eea;
    background: white;
    padding: 0 8px;
    font-weight: 500;
}

.form-label {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #64748b;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    transform-origin: right center;
}

.file-input-group {
    margin-top: 10px;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    text-align: center;
    justify-content: center;
}

.file-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-icon {
    font-size: 24px;
}

.file-text {
    font-size: 16px;
    color: #475569;
    font-weight: 500;
}

.file-description {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.4;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(-5px);
}

.error-message {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    align-items: center;
    gap: 8px;
}

.error-message.show {
    display: flex;
}

.error-icon {
    font-size: 16px;
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 30px 25px;
        margin: 10px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .form-label {
        right: 16px;
        top: 14px;
    }

    .submit-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-wrapper {
    animation: slideUp 0.6s ease-out;
}

.form-input:focus,
.file-label:focus-within,
.submit-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

#classes::placeholder {
    color: #64748b;
}
