*{
    margin:0;
    padding:0;
    top:0;
    box-sizing: border-box;
}

video{
	overflow: clip;

}

.videoInsert {
    position: relative;
    display: block;
    width: 40%;
    -o-object-fit: cover;
    object-fit: cover;
    height: 100vh;
    left : 0;
    object-position: center center;
    overflow : hidden;
}

.form-container{
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
   position: fixed;
   top: 10%;
   right: 20%;
   left : 47%;
   width : 35%;
   height: 80vh;
   background-color:#ffff;
   text-align: center;


}
.form-container h2 {
    margin-top: 40px;
	margin-bottom: 20px;
	color: #333;
	text-align: center;
}
.form-group{
	margin-bottom: 15px;
    width : 25vw;
}

 input {
	width: 80%;
	padding: 10px;
    outline: none;
	border: none;
    border-bottom: 1px dotted #0000002a;
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}
.form-group input:focus {
   outline: none;
}
.login-btn {
	width: 30%;
	margin : 10px 0 10px 0 ;
	padding: 10px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}
.login-btn:hover {
	background-color:#E0FB4A;
	transform: scale(1.05);
}


.create-account{
	font-size: 12px;
}
.google-login-btn {
	width: 50%;
	padding: 10px;
	color:#000;
	border: 1px dotted #000;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
	margin-top: 10px;
	transition: transform 0.3s ease;
	background-color: #fff;
}
.google-login-btn:hover {
	border:2px solid #008000;
	color: #03045e;
	transform: scale(1.05);
}


input[type="text"],
input[type="password"],
input[type="email"] {
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    font-size: clamp(10px, 5vw, 14px);
    position: relative;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: #aaa;
    transition: transform 0.3s ease, font-size 0.3s ease;
}
/* placeholder animation */
input[type="text"]:focus::placeholder,
input[type="password"]:focus::placeholder,
input[type="email"]:focus::placeholder,
input[type="text"]:not(:placeholder-shown)::placeholder,
input[type="password"]:not(:placeholder-shown)::placeholder, 
input[type="email"]:not(:placeholder-shown)::placeholder {
    transform: translateY(-100%);
    font-size: 0.75rem;
    padding-left: 5px;

}


.google-icon{
	width : 20px;
	height : 20px;
	margin: 0 20px 5px 0;
	padding: 0;
}

.signup-link{
	color: #000;
}
.signup-link:hover{
	color: #780000;
}

.error-message{
	font-size: 14px;
}

.login-link {
	color: #fff;
}

.login-link:hover{
	color: #000;
}

.reset{
	color: #000;
	display: flex;
	font-size: 12px;
	margin-left: 240px;
}

.reset:hover{
	color: #780000;
}


.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding-right: 2.5rem; 
}

.input-group button {
    position: absolute;
    right: 0.5rem; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.input-group i {
    font-size: 12px;
    margin-top: 15px;
    color: #6c757d;
}


@media screen and (max-width: 767px) {
    /* Make video full-width */
    .videoInsert {
        width: 100%;
        height: 100vh;
    }
    
    /* Position the login container inside the video as an overlay */
    .form-container {
        position: absolute; 
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;         
        height: 90vh;
		border-radius: 10px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.24); /* Semi-transparent background */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    /* Adjust the form-group width */
    .form-group {
        width: 100%;
    }
    
    /* Ensure inputs and buttons take full width */
    input,
    .login-btn,
    .google-login-btn {
        width: 100%;

    }
    
    /* Optional: Adjust font sizes and padding for inputs/buttons */
    input {
        padding: 8px;
        font-size: 14px;
		background-color: transparent;
		color: #000;
    }
    
    .login-btn,
    .google-login-btn {
        padding: 8px;
        font-size: 14px;
    }
    
input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: #000;

}
    /* Adjust other texts if needed */
    .error-message {
        font-size: 12px;
    }
    
    .reset {
        margin-left: 0;
        text-align: center;
        font-size: 12px;
    }
}

.spinner {
    border: 2px solid #f3f3f3;      
    border-top: 2px solid #3498db; 
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px; 
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }


/* For screens up to 479px (if further tweaks are needed) */
@media screen and (max-width: 479px) {
    .form-container {
        width: 95%;
        padding: 15px;
    }
    
    input {
        font-size: 13px;
        padding: 6px;
    }
    
    .login-btn,
    .google-login-btn {
        font-size: 13px;
        padding: 6px;
    }
    
    .error-message {
        font-size: 11px;
    }
}
