* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #1a1a2e;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background image positioning */
.left-images, .right-images {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Left side images */
.left-ball {
    position: absolute;
    left: -1%;
    top:90%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 60%;
    max-width: 400px;
    z-index: -2;
    opacity: 0.6;
    -webkit-animation: float-ball 15s infinite ease-in-out;
            animation: float-ball 15s infinite ease-in-out;
}

.left-big-shadow {
    position: absolute;
    left: 0%;
    top: 25%;
    width: 30%;
    width: 240px;
    z-index: -3;
    opacity: 0.5;
    -webkit-animation: float-shadow 20s infinite ease-in-out;
            animation: float-shadow 20s infinite ease-in-out;
}

.left-small-shadow {
    position: absolute;
    left: -2%;
    top: 15%;
    width: 15%;
    max-width: 400px;
    z-index: -2;
    opacity: 0.6;
    -webkit-animation: float-small-shadow 18s infinite ease-in-out;
            animation: float-small-shadow 18s infinite ease-in-out;
}

/* Right side images */
.right-ball {
    position: absolute;
    right: -3%;
    top:-15%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 60%;
    max-width: 300px;
    z-index: -1;
    opacity: 0.6;
    -webkit-animation: float-ball-reverse 17s infinite ease-in-out;
            animation: float-ball-reverse 17s infinite ease-in-out; 
}

.right-big-shadow {
    position: absolute;
    right: -5%;
    top: 45%;
    width: 30%;
    max-width: 350px;
    z-index: -3;
    opacity: 0.5;
    -webkit-animation: float-shadow-reverse 22s infinite ease-in-out;
            animation: float-shadow-reverse 22s infinite ease-in-out;
}

.right-small-shadow {
    position: absolute;
    right: -5%;
    bottom: -20%;
    width: 20%;
    max-width: 300px;
    z-index: -2;
    opacity: 0.6;
    -webkit-animation: float-small-shadow-reverse 19s infinite ease-in-out;
            animation: float-small-shadow-reverse 19s infinite ease-in-out;
}

.login-container {
    width: 100%;
    width: 400px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 30px 20px;
    background-color: rgba(26, 26, 46, 0.7);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 15px;
    -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin-right: 10px;
}

.logo-gem {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #ffb347, #4ecdc4, #556270);
    border-radius: 5px;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    -webkit-animation: pulse 3s infinite alternate;
            animation: pulse 3s infinite alternate;
}

@-webkit-keyframes pulse {
    0% { -webkit-transform: rotate(45deg) scale(1); transform: rotate(45deg) scale(1); }
    100% { -webkit-transform: rotate(45deg) scale(1.1); transform: rotate(45deg) scale(1.1); }
}

@keyframes pulse {
    0% { -webkit-transform: rotate(45deg) scale(1); transform: rotate(45deg) scale(1); }
    100% { -webkit-transform: rotate(45deg) scale(1.1); transform: rotate(45deg) scale(1.1); }
}

h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 500;
}

.input-group {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

input {
    min-width: 270px;
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    outline: none;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    -webkit-box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.3);
            box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.3);
}

input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button {
    width: 100%;
    padding: 15px;
    background-color: #6a5acd;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    margin-bottom: 20px;
    -webkit-box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
            box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
}

button:hover {
    background-color: #5a4abf;
    -webkit-box-shadow: 0 6px 15px rgba(106, 90, 205, 0.4);
            box-shadow: 0 6px 15px rgba(106, 90, 205, 0.4);
}

button:active {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    -webkit-box-shadow: 0 4px 8px rgba(106, 90, 205, 0.3);
            box-shadow: 0 4px 8px rgba(106, 90, 205, 0.3);
}

.footer {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 14px;
}

/* Animations for the PNG images */
@-webkit-keyframes float-ball {
    0%, 100% { -webkit-transform: translateY(-50%) translateX(0); transform: translateY(-50%) translateX(0); }
    50% { -webkit-transform: translateY(-50%) translateX(30px); transform: translateY(-50%) translateX(30px); }
}
@keyframes float-ball {
    0%, 100% { -webkit-transform: translateY(-50%) translateX(0); transform: translateY(-50%) translateX(0); }
    50% { -webkit-transform: translateY(-50%) translateX(30px); transform: translateY(-50%) translateX(30px); }
}

@-webkit-keyframes float-ball-reverse {
    0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
    50% { -webkit-transform: translateX(-30px); transform: translateX(-30px); }
}

@keyframes float-ball-reverse {
    0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
    50% { -webkit-transform: translateX(-30px); transform: translateX(-30px); }
}

@-webkit-keyframes float-shadow {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(15px); transform: translateY(15px); }
}

@keyframes float-shadow {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(15px); transform: translateY(15px); }
}

@-webkit-keyframes float-shadow-reverse {
    0%, 100% { -webkit-transform: translateY(0) rotate(0deg); transform: translateY(0) rotate(0deg); }
    50% { -webkit-transform: translateY(-15px) rotate(3deg); transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-shadow-reverse {
    0%, 100% { -webkit-transform: translateY(0) rotate(0deg); transform: translateY(0) rotate(0deg); }
    50% { -webkit-transform: translateY(-15px) rotate(3deg); transform: translateY(-15px) rotate(3deg); }
}

@-webkit-keyframes float-small-shadow {
    0%, 100% { -webkit-transform: translateX(0) rotate(0deg); transform: translateX(0) rotate(0deg); }
    50% { -webkit-transform: translateX(20px) rotate(5deg); transform: translateX(20px) rotate(5deg); }
}

@keyframes float-small-shadow {
    0%, 100% { -webkit-transform: translateX(0) rotate(0deg); transform: translateX(0) rotate(0deg); }
    50% { -webkit-transform: translateX(20px) rotate(5deg); transform: translateX(20px) rotate(5deg); }
}

@-webkit-keyframes float-small-shadow-reverse {
    0%, 100% { -webkit-transform: translateX(0) rotate(0deg); transform: translateX(0) rotate(0deg); }
    50% { -webkit-transform: translateX(-20px) rotate(-5deg); transform: translateX(-20px) rotate(-5deg); }
}

@keyframes float-small-shadow-reverse {
    0%, 100% { -webkit-transform: translateX(0) rotate(0deg); transform: translateX(0) rotate(0deg); }
    50% { -webkit-transform: translateX(-20px) rotate(-5deg); transform: translateX(-20px) rotate(-5deg); }
}

/* Password visibility toggle */
.password-container {
    position: relative;
    width: 100%;
}

input[type="password"],
input[type="text"] {
    padding-right: 40px; /* Add padding on the right to prevent text overlapping with the icon */
}

.btn-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 2;
}

.eye-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255, 255, 255, 0.7)' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.eye-icon.show {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255, 255, 255, 0.7)' viewBox='0 0 16 16'%3E%3Cpath d='M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z'/%3E%3Cpath d='M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z'/%3E%3Cpath d='M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z'/%3E%3C/svg%3E");
}

.btn-toggle-password:hover .eye-icon {
    -webkit-filter: brightness(1.2);
            filter: brightness(1.2);
} 