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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf3 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header .logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

.page-header .logo-text .x-logo {
    color: #7c3aed;
    font-size: 36px;
    margin-right: 5px;
}

.register-container {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    padding: 40px 50px;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.header-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-text p {
    font-size: 15px;
    opacity: 0.95;
}

.card-body {
    padding: 40px 50px 50px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.form-row.one-col {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-group label sup {
    color: #ef4444;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c3aed;
    font-size: 18px;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px 0 44px;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.3s;
    background: #fff;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.input-wrapper input.is-invalid,
.input-wrapper select.is-invalid {
    border-color: #ef4444;
}

.input-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237c3aed' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.input-wrapper input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 3;
}

.file-input-label {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px 0 44px;
    font-size: 14px;
    color: #94a3b8;
    background: #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input-label:hover {
    border-color: #7c3aed;
}

.file-input-label.has-file {
    color: #1e293b;
}

.input-wrapper.password-wrapper {
    position: relative;
    display: block;
}

.input-wrapper.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 28px;
    height: 28px;
}

.input-wrapper.password-wrapper .toggle-password:hover {
    color: #7c3aed;
}

.input-wrapper.password-wrapper input {
    padding-right: 45px !important;
}

.form-group small {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.download-btn {
    height: 48px;
    width: 48px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    text-decoration: none;
}

.download-btn:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.file-upload-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.captcha-wrapper {
    margin: 25px 0;
}

.btn-register {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 30px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.3);
}

.btn-register i {
    font-size: 20px;
}

.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #64748b;
}

.footer-text a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 30px 25px;
    }

    .card-header {
        padding: 30px 25px;
    }
}
