body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 450px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff8c00, #ff6b35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

.login-btn {
    background: linear-gradient(135deg, #ff8c00, #ff6b35);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.4);
    background: linear-gradient(135deg, #e67e22, #e74c3c);
}

.login-btn:active {
    transform: translateY(-1px);
}

.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.9);
    margin: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 5px;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.modal-description {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1rem;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    direction: ltr;
}

.otp-digit {
    width: 60px;
    height: 60px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    background: #f8f9fa;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.otp-digit:focus {
    border-color: #ff8c00;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    transform: scale(1.05);
}

.modal-btn {
    background: linear-gradient(135deg, #ff8c00, #ff6b35);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.modal-btn:hover {
    background: linear-gradient(135deg, #e67e22, #e74c3c);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .login-container {
        margin: 10px;
        padding: 30px 20px;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 10px;
    }

    .otp-container {
        gap: 10px;
        justify-content: center;
    }

    .otp-digit {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 25px 15px;
        border-radius: 15px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-digit {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* From Uiverse.io by AbanoubMagdy1 */
.wave-group {
  position: relative;
}

.wave-group .input {
  font-size: 16px;
  padding: 10px 10px 10px 5px;
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #515151;
  background: transparent;
  font-family: 'Cairo', sans-serif;
}

.wave-group .input:focus {
  outline: none;
}

.wave-group .label {
  color: #999;
  font-size: 18px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 10px;
  display: flex;
}

.wave-group .label-char {
  transition: 0.2s ease all;
  transition-delay: calc(var(--index) * .05s);
}

.wave-group .input:focus ~ label .label-char,
.wave-group .input:valid ~ label .label-char {
  transform: translateY(-20px);
  font-size: 14px;
  color: #ff8c00;
}

.wave-group .bar {
  position: relative;
  display: block;
  width: 100%;
}

.wave-group .bar:before,.wave-group .bar:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #ff8c00;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

.wave-group .bar:before {
  left: 50%;
}

.wave-group .bar:after {
  right: 50%;
}

.wave-group .input:focus ~ .bar:before,
.wave-group .input:focus ~ .bar:after {
  width: 50%;
}
