/* Login page container styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Work Sans', sans-serif;
}

.admin-login {
    position: relative;  /* Changed from fixed */
    width: 100%;
    max-width: 1445px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo group */
.admin-login .group {
    position: relative;  /* Changed from absolute */
    width: 138px;
    height: 66px;
    margin-bottom: 64px;  /* Replaces absolute positioning */
}

.admin-login .overlap {
    position: relative;
    width: 136px;
    height: 66px;
}

/* Email input group */
.admin-login .div {
    position: relative;  /* Changed from absolute */
    width: 379px;
    height: 67px;
    margin-bottom: 16px;  /* Replaces absolute positioning */
}

/* Password input group */
.admin-login .group-2 {
    position: relative;  /* Changed from absolute */
    width: 379px;
    height: 67px;
    margin-bottom: 32px;  /* Replaces absolute positioning */
}

/* Input wrapper styles */
.admin-login .div-wrapper {
    position: relative;  /* Changed from absolute */
    width: 375px;
    height: 40px;
    margin-top: 27px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

/* Input field styles */
.admin-login .div-wrapper input {
    width: 365px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 16px;
    padding: 0 15px;
    color: #000;
    outline: none;
    font-family: "Work Sans";
}

/* Label styles */
.admin-login .text-wrapper-3 {
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 500;
    font-family: "Work Sans";
    color: #242424;
    font-size: 16px;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
}

/* Login button styles */
.admin-login .new-experiment-btn {
    all: unset;
    box-sizing: border-box;
    display: flex;
    width: 375px;
    align-items: center;
    justify-content: center;
    font-family: "Work Sans";
    gap: 10px;
    padding: 12px 24px;
    background-color: #1851bc;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 16px;  /* Replaces absolute positioning */
}

.admin-login .text-wrapper-5 {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-weight: 500;
    color: #ffffff;
    font-size: 16px;
    font-family: "Work Sans";
    text-align: center;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
}

/* Password toggle styles */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

.password-toggle img {
    width: 20px;
    height: 20px;
    transition: opacity 0.2s ease;
}

.hide-password-icon {
    display: none;
}

.div-wrapper input[type="password"],
.div-wrapper input[type="text"] {
    padding-right: 40px !important;
}

/* Error message styles */
.error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    position: absolute;
    left: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .admin-login .div,
    .admin-login .group-2,
    .admin-login .div-wrapper,
    .admin-login .new-experiment-btn {
        width: 90%;
    }
    
    .admin-login .div-wrapper input {
        width: calc(100% - 30px);
    }
}