/* styles.css */
body {
    background: #212022;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: #333;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    -webkit-text-fill-color: #fff; 
    transition: background-color 5000s ease-in-out 0s;
  }
  

.login-container {
    background: transparent;
    width: 100%;
    max-width: 300px;
    position: relative;
    overflow: hidden;
}

.logo {
    display: block;
    width: 300px;
    margin: 0 auto 25px; /* felül 0, bal és jobb auto, alul 25px */
    position: relative;
}

.login-text {
    margin-bottom: 30px;
    font-size: 13px;
    color: #bcbcbc;
    font-weight: 400;
}

.input-group {
    position: relative; /* Fontos, hogy a gyerek absolute lehessen */
  }
  
.checkbox-group {
    position: relative;
    margin-bottom: 36px; /* Ha kell valamennyi alap távolság a többiektől */
}
  
/* Ha a <label> kapja a .input-error-t */
.custom-checkbox.input-error .checkmark {
    border: 1px solid #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
  }
  

.error-message {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 4px;
    color: #ff4d4d;
    font-size: 12px;
    display: none; /* Alapból rejtve */
}
  
.error-message.show {
    display: block;
}
  
.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(82, 82, 82, 1);
    border-radius: 10px;
    padding: 12px;
    background: #ffffff00;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 23px; /* Ha kell valamennyi alap távolság a többiektől */

}

.input-wrapper.input-error {
    border: 1px solid #ff4d4d !important;
    background-color: rgba(255, 77, 77, 0.1);
}


.input-wrapper:hover {
    border-color: #267751;
}

.input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
}

.icon {
    font-size: 15px;
    color: #666;
    transition: color 0.3s ease;
}

.password-toggle {
    color: #666;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 20%; /* kerek ikonhoz */
    padding: 1px;      /* kis belső margó, hogy legyen „hely” a körben */
  }
  
  .password-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1); /* nagyon halvány szürke/felhős fehér */
    /* tetszés szerint a színt is változtathatod:
       color: #fff; */
  }

.input-wrapper:focus-within .icon {
    color: #267751;
}
/* Javított CSS */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #7f7f7f;
    border-radius: 6px;
    margin-right: 12px;
    background: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.custom-checkbox input:checked ~ .checkmark {
    background: #267751;
    border-color: #267751;
    animation: checkAnim 0.4s ease;
}

.checkmark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -57%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.custom-checkbox input:checked ~ .checkmark::after {
    opacity: 1;
}

.checkbox-text {
    color: #b7b7b7;
    font-size: 12px;
    line-height: 1.4;
}

@keyframes checkAnim {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

.main-btn {
    width: 100%;
    padding: 12px;
    background: #267751;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.main-btn i {
    font-size: 16px;
}

.l {
    font-size: 12px;
    color: #76bbff;
}

.main-btn:hover {
    background: #184e35;
}

.links {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    color: #c1cbff;
}

.link-hover {
    text-decoration: none;
    position: relative;
    color: #ffffff;
}

.link-hover:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-hover:hover:after {
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #5b5b5b;
}

.divider-text {
    padding: 0 15px;
    color: #919191;
    font-size: 13px;
    font-weight: 500;
}

.google-btn {
    width: 100%;
    padding: 14px;
    background: #2d2d2d;
    color: #ffffff;
    border: 1px solid rgba(82, 82, 82, 1);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.google-btn:hover {
    border-color: #838383;
    background: rgba(0, 0, 0, 0.345);
}

.google-btn i {
    color: #DB4437;
    font-size: 18px;
}

.hover-effect {
    position: absolute;
    background: rgba(144, 144, 144, 0.2);
    width: 50px;
    height: 100%;
    left: -50%;
    top: 0;
    transform: skewX(-15deg);
    transition: left 0.6s ease;
}

.google-btn:hover .hover-effect {
    left: 150%;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px;
        margin: 15px;
    }
}