/* Base Styles */
:root {
    --primary-color: #6a5acd;
    --secondary-color: #9370db;
    --accent-color: #ff7e5f;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: rgb(222 224 225);
    color: #333;
    line-height: 1.6;
    overflow: hidden;
    position: relative;
}

/* First floating icon */
body::before {
    content: "✏️";
    position: fixed;
    top: 30%;
    left: 30%;
    font-size: 100px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
    animation: orbit1 7s linear infinite;
}

/* Second floating icon */
body::after {
    content: "🪐";
    position: fixed;
    top: 60%;
    left: 70%;
    font-size: 120px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    animation: orbit2 9s linear infinite;
}

/* Circular orbit animations */
@keyframes orbit1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(30px, 30px); }
    50% { transform: translate(0, 60px); }
    75% { transform: translate(-30px, 30px); }
    100% { transform: translate(0, 0); }
}

@keyframes orbit2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-40px, 40px); }
    50% { transform: translate(0, 80px); }
    75% { transform: translate(40px, 40px); }
    100% { transform: translate(0, 0); }
}



.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Registration Form Styles */
.registration-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-header {
    background: linear-gradient(135deg, #279ba3, #a32727);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-bottom: 50px;
    background-size: 200% 200%;
    animation: gradientAnimation 5s ease infinite;
    border-radius: 20px;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-header h2 i {
    margin-right: 10px;
}

.form-header p {
    opacity: 0.9;
}

.form-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.form-section h3 i {
    margin-right: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 5px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.strength-bar.weak {
    background: var(--error-color);
}

.strength-bar.medium {
    background: var(--warning-color);
}

.strength-bar.strong {
    background: var(--success-color);
}

.strength-text {
    font-size: 0.85rem;
}

.strength-text.weak {
    color: var(--error-color);
}

.strength-text.medium {
    color: var(--warning-color);
}

.strength-text.strong {
    color: var(--success-color);
}

/* Terms Checkbox */
.terms {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.terms input {
    width: auto;
    margin-right: 10px;
}

.terms label {
    margin-bottom: 0;
}

#termsLink {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

#termsLink:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #a32727, var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.4);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Alerts */
.alert {
    padding: 15px;
    margin: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert-error {
    background-color: rgb(220 53 69 / 22%);
    border-left: 4px solid var(--error-color);
    color: #f9949e;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.close-modal:hover {
    color: var(--dark-color);
}

.terms-content {
    margin-top: 1rem;
}

.terms-content ul {
    margin: 1rem 0 1rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

.lock-animation {
    display: inline-block;
    position: relative;
    width: 1em; /* Match icon width */
    height: 1em; /* Match icon height */
    margin-right: 10px;
  }
  
  .lock-animation i {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: lockCycle 3s infinite ease-in-out;
  }
  
  .lock-animation .fa-lock {
    animation-delay: 0s; /* Starts locked */
  }
  
  .lock-animation .fa-lock-open {
    animation-delay: 1.5s; /* Opens after 1.5s */
  }
  
  @keyframes lockCycle {
    0%, 45% {
      opacity: 0;
      transform: scale(0.9);
    }
    50%, 95% {
      opacity: 1;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(0.9);
    }
  }
  
  
  
  
  