.container-main{
	margin: 0 auto;
	height: 800px;
	max-width: 1200px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.wrapper {
	background: transparent;
	width: 650px;
	height: auto;
	position: relative;
	padding: 30px 40px;
	box-shadow: 0 0 8px var(--yellow);
	border-radius: 20px;
}

.wrapper h1 {
	text-align: center;
	font-size: 2.5em;
	margin-bottom: 30px;
}

.wrapper .input-box{
	width: 100%;
	height: 60px;
	margin: 50px 0;
	position: relative;
}

.input-box input{
	width: 100%;
	height: 100%;
	background: transparent;
	border: none;
	outline: none;
	border: 2px solid lightgrey;
	border-radius: 40px;
	padding: 20px 50px 20px 20px;
	font-size: 18px;
}

.input-box input::placeholder{
	color: black;
}

.input-box input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 1px var(--yellow);
}

.input-box i {
	position: absolute;
	transform: translateY(-50%);
	right: 25px;
	top: 50%;
	font-size: 20px;
	color: #666;
}

.wrapper .remember-forgot {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	margin: -15px 0 25px;
}

.remember-forgot label input {
	accent-color: black;
	margin-right: 3px;
}

.remember-forgot a{
	color: black;
	text-decoration: none;
}

.remember-forgot a:hover {
	text-decoration: underline;
}

.wrapper .btn {
	width: 100%;
	height: 55px;
	background: var(--yellow);
	border: none;
	outline: none;
	border-radius: 40px;
	box-shadow: 0 0 10px var(--yellow);
	cursor: pointer;
	font-size: 18px;
	color: black;
	font-weight: 550;
	transition: all 0.3s ease;
}

.wrapper .register-link {
	justify-content: center;
	align-items: center;
	display: flex;
	font-size: 18px;
	text-align: center;
	margin: 30px 0 15px;
	gap: 8px;
}

.wrapper .btn:hover {
    box-shadow: 0 0 15px var(--yellow);
    filter: brightness(0.91);
}

.register-link p {
    color: black;
    margin: 0;
}

.register-link a {
    color: black;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .wrapper {
        max-width: 550px;
        padding: 25px 35px;
    }
}

@media (max-width: 768px) {
    .container-main {
        padding: 40px 16px;
		margin-top: -15px;
    }

    .wrapper {
        max-width: 470px;
        padding: 25px;
        margin-top: -20px; /* Поднимаем форму на 10px */
    }

    .wrapper .input-box{
        margin: 35px 0;
    }

    .wrapper h1 {
        font-size: 2em;
    }
    
    /* Предотвращаем zoom на iOS */
    .input-box input {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .wrapper {
        max-width: 360px;
        padding: 20px;
        border-radius: 15px;
        margin-top: -10px; /* Поднимаем форму на 10px */
    }

    .wrapper h1 {
        font-size: 1.7em;
    }

    .spacer {
        height: 60px;
    }
    
    /* Предотвращаем zoom на iOS */
    .input-box input {
        font-size: 16px !important;
    }
}
/* Fix register-link alignment */
@media (max-width: 768px) {
    .wrapper .register-link {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
    }
}
