/* ============================================
   Profile Form Container - Full page centered layout
   ============================================ */
.profile-content{

    margin-top: 5%;

}
.profile-page-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;

}

/* Decorative background shapes - SVG style */
.profile-page-container::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: 608px;
    height: 371px;
    background-image: url('data:image/svg+xml;utf8,<svg width="608" height="371" viewBox="0 0 608 371" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M607.671 66.6389V-82.3568H485.433V66.6389C485.433 166.908 404.105 248.236 303.836 248.236C203.566 248.236 122.238 166.908 122.238 66.6389V-209.595C122.238 -277.121 67.5269 -331.833 0 -331.833V66.7093C0 234.506 136.04 370.545 303.836 370.545C471.632 370.545 607.671 234.506 607.671 66.7093V66.6389Z" fill="url(%23paint0_linear_53_4209)"/><defs><linearGradient id="paint0_linear_53_4209" x1="1002.48" y1="987.722" x2="-126.534" y2="-540.399" gradientUnits="userSpaceOnUse"><stop stop-color="%235931F8"/><stop offset="0.5" stop-color="%234123FD"/><stop offset="1" stop-color="%2311BEFD"/></linearGradient></defs></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
}

.profile-page-container::after {
    content: '';
    position: fixed;
    bottom: -80px;
    right: -500px;
    width: 617px;
    height: 261px;
    background-image: url('data:image/svg+xml;utf8,<svg width="617" height="261" viewBox="0 0 617 261" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M616.581 404.314V253.134H492.55V404.314C492.55 506.054 410.03 588.574 308.29 588.574C206.551 588.574 124.031 506.054 124.031 404.314V124.031C124.031 55.5137 68.5169 0 0 0V404.386C0 574.642 138.034 712.676 308.29 712.676C478.547 712.676 616.581 574.642 616.581 404.386V404.314Z" fill="url(%23paint0_linear_53_4222)"/><defs><linearGradient id="paint0_linear_53_4222" x1="1017.18" y1="1338.9" x2="-128.389" y2="-211.624" gradientUnits="userSpaceOnUse"><stop stop-color="%235931F8"/><stop offset="0.5" stop-color="%234123FD"/><stop offset="1" stop-color="%2311BEFD"/></linearGradient></defs></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
}

/* Background gradient */
.profile-page-container {
    background-image:
            linear-gradient(135deg, #F5F3FF 0%, #F3F0FF 50%, #EEF2FF 100%);
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* Ensure content is above decorative elements */
.profile-page-container > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   Profile Wrapper
   ============================================ */

.profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    row-gap: 30px;
}

/* ============================================
   Profile Text (Header)
   ============================================ */

.profile-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    row-gap: 10px;
    text-align: center;
    row-gap: 17px;
    margin-bottom: 8%;
}

.profile-title {
    align-self: stretch;
    text-align: center;
    line-height: 29px;
    letter-spacing: 0;
    color: #000;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    font-size: 35px;
    font-weight: 700;
    margin-top: 4%;
}

.profile-subtitle {
    align-self: stretch;
    text-align: center;
    line-height: 26px;
    letter-spacing: 0;
    color: #737789;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   Profile Form Container
   ============================================ */

.profile-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    border-radius: 16px;
    background: #ffffff;
    padding: 27px;
    row-gap: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid #d8b4ff;
    width: 146%;
    margin-left: -24%;
    box-shadow: 0 8px 32px 0 rgba(89, 49, 248, 0.1);
}

/* ============================================
   Profile Form
   ============================================ */

.profile-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;

    width: 100%;
}

/* ============================================
   Form Group
   ============================================ */

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    row-gap: 12px;
}

.form-label {
    line-height: 26px;
    letter-spacing: 0;
    color: #000;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   Upload Area (Profile Picture)
   ============================================ */

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    border-radius: 10px;
    border: 2px dashed #d8b4ff;
    background: #f8f6ff;
    padding: 40px 20px;
    row-gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 150px;
}

.upload-area:hover {
    border-color: #9b6dd4;
    background: #faf8ff;
    box-shadow: 0 0 12px 0 rgba(155, 109, 212, 0.2);
}

.upload-area:active {
    border-color: #3883f4;
    background: #f0f4ff;
}

.upload-area svg {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.upload-area:hover svg {
    opacity: 1;
}

.upload-text {
    line-height: 20px;
    letter-spacing: 0;
    color: #404040;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

/* ============================================
   Form Input
   ============================================ */

.form-input {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 0 8px 0 rgba(89, 49, 248, 0.1);
    background: #fff;
    padding: 16px;
    height: 56px;
    border: 2px solid transparent;
    font-size: 16px;
    color: #404040;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    transition: box-shadow 0.3s ease, border 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #b0b0b0;
}

.form-input:hover {
    border: 2px solid #9b6dd4;
    box-shadow: 0 0 12px 0 rgba(155, 109, 212, 0.3);
}

.form-input:focus {
    outline: none;
    border: 2px solid #3883f4;
    box-shadow: 0 0 16px 0 rgba(56, 131, 244, 0.3);
}

/* ============================================
   Continue Button
   ============================================ */

.profile-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    border-radius: 10px;
    padding: 16px;
    height: 56px;
    overflow: hidden;
    background-image: linear-gradient(260.78deg, #6007d4cc -4.91%, #3883f4 90.16%);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: Tajawal, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.profile-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(89, 49, 248, 0.3);
}

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

.profile-continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Responsive Design - Tablets (768px and below)
   ============================================ */

@media (max-width: 768px) {
    .profile-page-container {
        padding: 1.5rem 1rem;
    }

    .profile-wrapper {
        width: 100%;
        max-width: 500px;
        row-gap: 24px;
    }

    .profile-text {
        row-gap: 8px;
    }

    .profile-title {
        font-size: 28px;
        line-height: 32px;
    }

    .profile-subtitle {
        font-size: 16px;
        line-height: 22px;
    }

    .profile-form-container {
        padding: 34px;
        row-gap: 18px;
        border-radius: 12px;
    }

    .profile-form {
        row-gap: 20px;
    }

    .form-group {
        row-gap: 10px;
    }

    .form-label {
        font-size: 15px;
        line-height: 20px;
    }

    .upload-area {
        padding: 30px 15px;
        row-gap: 10px;
        min-height: 130px;
        border-radius: 8px;
    }

    .upload-area svg {
        width: 36px;
        height: 36px;
    }

    .upload-text {
        font-size: 13px;
        line-height: 18px;
    }

    .form-input {
        padding: 12px;
        height: 48px;
        font-size: 15px;
        border-radius: 8px;
    }

    .profile-continue-btn {
        padding: 12px;
        height: 48px;
        font-size: 16px;
        border-radius: 8px;
        margin-top: 8px;
    }
}

/* ============================================
   Responsive Design - Mobile (480px and below)
   ============================================ */

@media (max-width: 480px) {
    .profile-content {
        margin-top: 17%;
    }
    .profile-page-container {
        padding: 1rem;
        min-height: auto;
    }

    .profile-wrapper {
        width: 100%;
        max-width: 100%;
        row-gap: 20px;
    }

    .profile-text {
        row-gap: 6px;
    }

    .profile-title {
        font-size: 24px;
        line-height: 28px;
    }

    .profile-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .profile-form-container {
        padding: 24px;
        row-gap: 16px;
        border-radius: 10px;
        width: 105%;
        margin-left: -3%;
    }

    .profile-form {
        row-gap: 18px;
    }

    .form-group {
        row-gap: 8px;
    }

    .form-label {
        font-size: 14px;
        line-height: 18px;
    }

    .upload-area {
        padding: 24px 12px;
        row-gap: 8px;
        min-height: 120px;
        border-radius: 6px;
    }

    .upload-area svg {
        width: 32px;
        height: 32px;
    }

    .upload-text {
        font-size: 12px;
        line-height: 16px;
    }

    .form-input {
        padding: 10px;
        height: 44px;
        font-size: 14px;
        border-radius: 6px;
    }

    .profile-continue-btn {
        padding: 10px;
        height: 44px;
        font-size: 15px;
        border-radius: 6px;
        margin-top: 6px;
    }
}

/* ============================================
   Responsive Design - Extra Small (320px and below)
   ============================================ */

@media (max-width: 320px) {
    .profile-content {
        margin-top: 17%;
    }
    .profile-page-container {
        padding: 0.75rem;
    }

    .profile-wrapper {
        row-gap: 16px;
    }

    .profile-text {
        row-gap: 4px;
    }

    .profile-title {
        font-size: 20px;
        line-height: 24px;
    }

    .profile-subtitle {
        font-size: 12px;
        line-height: 16px;
    }

    .profile-form-container {
        padding: 16px;
        row-gap: 14px;
        border-radius: 8px;
    }

    .profile-form {
        row-gap: 16px;
    }

    .form-group {
        row-gap: 6px;
    }

    .form-label {
        font-size: 13px;
        line-height: 16px;
    }

    .upload-area {
        padding: 20px 10px;
        row-gap: 6px;
        min-height: 110px;
        border-radius: 6px;
    }

    .upload-area svg {
        width: 28px;
        height: 28px;
    }

    .upload-text {
        font-size: 11px;
        line-height: 14px;
    }

    .form-input {
        padding: 8px;
        height: 40px;
        font-size: 13px;
        border-radius: 6px;
    }

    .profile-continue-btn {
        padding: 8px;
        height: 40px;
        font-size: 13px;
        border-radius: 6px;
        margin-top: 4px;
    }
}