/* Base Styles */
:root {
    --primary-color: #113f67;
    --secondary-color: #2a6497;
    --accent-color: #d4a373;
    --light-color: #ffffff;
    --dark-color: #333333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Hero Section */
.register-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 10px 0 30px;
    position: relative;
    overflow: hidden;
    color: white;
}

.animated-heading {
    text-align: center;
    margin-bottom: 30px;
}
.profile-edit .form-control.readonly {
    background: #f8f9fa;
}

.animated-heading h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.8s forwards 0.3s;
}

.link-home-page {
    opacity: 0;
    animation: fadeIn 1s forwards 0.8s;
}

.link-home-page a,
.link-home-page p {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    margin: 0 5px;
}

.link-home-page a:hover {
    color: white;
    text-decoration: none;
}

/* Watch Particles Animation */
.watch-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatParticles linear infinite;
    bottom: -50px;
    /* Start below the container */
}


/* Individual particles (adjust sizes/delays) */
.particle:nth-child(1) {
    left: 10%;
    width: 12px;
    height: 12px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 25%;
    width: 18px;
    height: 18px;
    animation-duration: 15s;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    left: 40%;
    width: 14px;
    height: 14px;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    left: 55%;
    width: 20px;
    height: 20px;
    animation-duration: 14s;
    animation-delay: 0.5s;
}

.particle:nth-child(5) {
    left: 70%;
    width: 16px;
    height: 16px;
    animation-duration: 16s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    left: 85%;
    width: 10px;
    height: 10px;
    animation-duration: 10s;
    animation-delay: 1.5s;
}

.particle:nth-child(7) {
    left: 15%;
    width: 22px;
    height: 22px;
    animation-duration: 20s;
    animation-delay: 2.5s;
}

.particle:nth-child(8) {
    left: 30%;
    width: 8px;
    height: 8px;
    animation-duration: 8s;
    animation-delay: 4s;
}

.particle:nth-child(9) {
    left: 60%;
    width: 24px;
    height: 24px;
    animation-duration: 22s;
    animation-delay: 0.2s;
}

.particle:nth-child(10) {
    left: 90%;
    width: 13px;
    height: 13px;    margin-top: -50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.register-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: -40px !important;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    margin: 0 auto;
    max-width: 800px;
    margin-bottom: 100px;
}

.register-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.watch-icon {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.spin {
    animation: spin 8s linear infinite;
}

.form-header h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.form-header p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.login-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s;
}

.login-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Form Styles */
.floating-label {
    position: relative;
    margin-bottom: 40px;
}

.form-group label.email {
    width: 40px;
}

.form-group label.register-email {
    width: 100px;
}

.form-group label.login-email {
    width: 95px;
}

.form-group label.login-mobile {
    width: 100px;
}
.form-group label.login-otp {
    width: 145px;
}

.form-group label.forgot-password-email {
    width: 90px;
}

.form-group label.reset-password-email {
    width: 90px;
}

.forgot-email-label {
  margin-bottom: 0px;
}

.form-group label.reset-password-pass {
    width: 95px;
}

.form-group label.reset-password-cpass {
    width: 115px;
}

.form-group label.name {
    width: 70px;
}

.form-group label.mobile {
    width: 100px;
}

.form-group label.dob {
    width: 145px;
}

.form-group label.mobile {
    width: 100px;
}

.form-group label.dob {
    width: 145px;
}

.form-group label.gender {
    width: 55px;
}

.form-group label.password {
    width: 65px;
}

.form-group label.cpassword {
    width: 115px;
}

.floating-label label {
    position: absolute;
    top: 12px;
    left: 15px;
    color: #95a5a6;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 5px;
}

.floating-label input:focus~label,
.floating-label input:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--primary-color);
    background: white;
}

.floating-label select:focus~label,
.floating-label select:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--primary-color);
    background: white;
}

.floating-label .form-control {
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s;
}

.floating-label .form-control:focus {
    border-color: var(--primary-color);
}

/* Gender Selection */
.gender-selection {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.gender-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
}

.gender-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
    transition: all 0.3s;
}

.gender-option:hover input~.checkmark {
    background-color: #ccc;
}

.gender-option input:checked~.checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.gender-option input:checked~.checkmark:after {
    display: block;
}

.gender-option .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.gender-error {
    display: none;
    margin-top: 5px;
}

/* Password Strength */
.password-strength {
    height: 5px;
    width: 100%;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    background: #e74c3c;
    transition: all 0.3s;
}

.strength-text {
    color: #95a5a6;
    font-size: 12px;
}

.strength-text span {
    font-weight: 600;
}

/* Terms Checkbox */
.terms-group {
    display: flex;
    align-items: center;
    margin: 25px 0;
    position: relative;
}

.terms-group input {
    margin-right: 10px;
}

.terms-group label {
    margin-bottom: 0;
    color: #7f8c8d;
}

.terms-group a {
    color: var(--primary-color);
}

.terms-group .invalid-feedback {
    position: absolute;
    bottom: -20px;
    left: 0;
}

.form-control.is-invalid {
    background-position: right calc(.375em + 1.8175rem) center !important;
}

/* Register Button */
.btn-register {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-register:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(174, 132, 95, 0.3);
    background: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.btn-icon {
    margin-left: 10px;
    transform: translateX(-5px);
    opacity: 0;
    transition: all 0.3s;
}

.btn-register:hover .btn-icon {
    transform: translateX(0);
    opacity: 1;
}

/* Social Login */
.social-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.social-login p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.social-btn.google {
    background: #dd4b39;
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.twitter {
    background: #1da1f2;
}

.invalid-feedback {
    width: 100%;
    position: absolute;
    top: 45px;
    left: 5px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes floatParticles {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-150vh) rotate(360deg);
        /* Move above viewport */
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .register-hero {
        padding: 20px 0 30px;
    }

    .animated-heading h4 {
        font-size: 2rem;
    }

    .register-card {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .gender-selection {
        flex-direction: column;
        gap: 10px;
    }
}

/* Profile Image Styles */
.profile-image-container {
    margin-bottom: 20px;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
}

.profile-image-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-image-upload-label {
    position: absolute;
    bottom: 5px;
    right: -7px;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-image-upload-label:hover {
    transform: scale(1.1);
}

/* Password Toggle Styles */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.password-toggle:hover {
    color: #495057;
}

/* Profile Page Style */

.profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: -40px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    margin: 0 auto;
    max-width: 800px;
    margin-bottom: 55px;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 30px;
    background: #296295;
    color: white;
    flex-wrap: wrap;
}

.profile-avatar {
    position: relative;
    margin-right: 25px;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.avatar-edit {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.edit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #333;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-icon:hover {
    background: #555;
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-info h2 {
    margin: 0;
    font-weight: 600;
}

.member-since {
    opacity: 0.8;
    font-size: 14px;
    margin-top: 5px;
}

.profile-actions {
    margin-top: 15px;
    width: 100%;
}

.btn-edit {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.profile-content {
    padding: 30px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h3 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section h3 i {
    font-size: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 16px;
    min-width: 75px;
}

.info-item p {
    margin: 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.full-width {
    grid-column: 1 / -1 !important;
}

.full-address {
    display: flex;
    min-inline-size: fit-content;
}

.preferences {
    display: grid;
    gap: 20px;
}

.preference-item {
    display: flex;
    gap: 15px;
}

.preference-icon {
    font-size: 24px;
    color: #333;
    margin-top: 3px;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.brand-tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Edit Mode Styles */
.profile-edit .form-group {
    margin-bottom: 15px;
}

.profile-edit label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.profile-edit .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border 0.3s ease;
}

.profile-edit .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel,
.btn-save {
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-save {
    background: #333;
    color: white;
    border: none;
}

.btn-save:hover {
    background: #555;
}