/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: radial-gradient(#e3f6e5, #f0fdf4);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 3D Slide-in Animation */
@keyframes slideInLeft3D {
    0% {
        opacity: 0;
        transform: perspective(1000px) translateX(-150%) rotateY(45deg) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: perspective(1000px) translateX(0) rotateY(0deg) scale(1);
    }
}

/* Floating SVG Animation */
.floating-svg {
    position: absolute;
    width: 60px;
    opacity: 0.15;
    z-index: 0;
    animation: float 6s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Login Container */
.login-container {
    z-index: 2;
    width: 360px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    animation: slideInLeft3D 1s ease-out;
    transform-style: preserve-3d;
}

.login-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2d3748;
    text-align: center;
}

.login-container img.logo {
    display: block;
    margin: 0 auto 20px;
    width: 130px;
}

/* General Styles for inputs */
.form-group {
    position: relative;
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    padding-left: 5px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease-in-out;
    z-index: 1;
}

/* Floating Label */
.form-group label {
    position: absolute;
    left: 5px;
    top: 8px;
    font-size: 14px;
    color: #aaa;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    /* To make sure the label doesn't block the input */
}

/* Focus on Input */
.form-group input:focus {
    border-color: #38a169;
    /* Focus color for input */
    outline: none;
    box-shadow: 0 0 8px rgba(56, 161, 105, 0.5);
    /* Subtle focus effect */
}

/* Label Moves Up when input is focused */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -18px;
    font-size: 12px;
    color: #38a169;
    /* Color when the input is focused */
}

/* Placeholder style for inputs */
.form-group input::placeholder {
    visibility: hidden;
    /* Hide the placeholder when there's a label */
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    font-size: 13px;
    margin-bottom: 16px;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.custom-button,
.masked-button {
    width: 100%;
    background: transparent;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.custom-button:hover,
.masked-button:hover {
    transform: scale(1.03);
    outline: none;
}

/* Masked Button Text */
.masked-text {
    background: linear-gradient(to left, rgb(190, 220, 202), #38a169, #2f855a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 25px;
    animation: shimmer 3s linear infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Error & Status Messages */
.error,
.status {
    font-size: 13px;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 5px;
}

.error {
    background-color: #fed7d7;
    color: #c53030;
}

.status {
    background-color: #c6f6d5;
    color: #2f855a;
}

/* Register Button */
.register-button {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #38a169;
    /* Subtle color matching the main button */
    text-decoration: none;
    border: 2px solid #38a169;
    /* Add border to make it stand out */
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.register-button:hover {
    background: #38a169;
    /* Highlight on hover */
    color: white;
    transform: scale(1.05);
    /* Slightly larger on hover for a smooth effect */
}

/* Media Queries */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }

    .login-container h2 {
        font-size: 18px;
    }

    .form-group input {
        padding: 8px;
        font-size: 14px;
    }

    .masked-button {
        padding: 10px;
        font-size: 14px;
    }
}