.login-page .logo span,
.register-page .logo span {
    color: #7c5cc4;
}

.login-page a.forgot-pass,
.login-page a.signup,
.register-page a.forgot-pass,
.register-page a.signup {
    font-size: 0.85em;
    color: #7c5cc4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    margin: 5px 0;
}

.login-page a.forgot-pass::after,
.login-page a.signup::after,
.register-page a.forgot-pass::after,
.register-page a.signup::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #7c5cc4;
    transition: width 0.3s ease;
}

.login-page a.forgot-pass:hover::after,
.login-page a.signup:hover::after,
.register-page a.forgot-pass:hover::after,
.register-page a.signup:hover::after {
    width: 100%;
}

/* Page Background */
.login-page,
.register-page {
    background: #f8f9fa;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    width: 100%;
    min-height: 100vh;
    padding: 20px 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Circles */
.login-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(124, 92, 196, 0.1);
    animation: float 15s infinite linear;
    pointer-events: none;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-duration: 20s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.circle-3 {
    width: 70px;
    height: 70px;
    bottom: 20%;
    left: 20%;
    animation-duration: 18s;
    animation-delay: -8s;
}

.circle-4 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 20%;
    animation-duration: 30s;
    animation-delay: -12s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.5;
    }
}

.dark-mode .login-page,
.dark-mode .register-page {
    background: #f5f5f5;
    background-image: url('../images/auth/auth-dark.jpg');
    background-size:cover;
	width: 100%;
	min-height: auto;
	padding-bottom: 0;
	margin-left: 0
}

.login-page .form-outer,
.register-page .form-outer {
	min-height: 100vh;
	max-width: 600px;
	margin: 0 auto;
	padding: 20px 0;
	position: relative
}

.login-page .copyrights,
.register-page .copyrights {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100%
}

.login-page .copyrights p,
.register-page .copyrights p {
    font-size: 0.75em;
    font-weight: 400;
    margin: 15px 0 0;
    color: #666;
    text-align: center;
}

.login-page .copyrights .external,
.register-page .copyrights .external {
    color: #7c5cc4;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.login-page .copyrights .external::after,
.register-page .copyrights .external::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: #7c5cc4;
    transition: width 0.3s ease;
}

.login-page .copyrights .external:hover::after,
.register-page .copyrights .external:hover::after {
    width: 100%;
}

.login-page .form-inner,
.register-page .form-inner {
	border-radius: 12px;
	padding: 45px 35px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	margin-bottom: 20px;
	width: 100%;
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

/* Dark Mode Styles */
.dark-mode .login-page .form-inner,
.dark-mode .register-page .form-inner {
    background: rgba(40, 48, 70, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-mode .site-title {
    background: linear-gradient(45deg, #9b72e6, #c2a5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode input.input-material {
    color: #e4e6eb;
    border-bottom-color: #3b4253;
}

.dark-mode input.input-material:focus {
    background: rgba(124, 92, 196, 0.1);
}

.dark-mode input.input-material~label {
    color: #b8c1d1;
}

.dark-mode input.input-material~label.active {
    background: #283046;
    box-shadow: 0 0 0 2px rgba(124, 92, 196, 0.2);
}

.dark-mode .input-group-text {
    color: #9b72e6;
}

.dark-mode .login-page,
.dark-mode .register-page {
    background: #161d31;
    background: linear-gradient(135deg, #161d31 0%, #0f1422 100%);
}

.dark-mode .circle {
    background: rgba(155, 114, 230, 0.1);
}

.login-page .logo,
.register-page .logo {
    margin-bottom: 20px;
}

.logo-img {
    transition: transform 0.5s ease, opacity 0.5s ease;
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.site-title {
    color: #333;
    font-size: 2.2em;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #7c5cc4, #9b72e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.login-page p,
.register-page p {
	font-size: .8em;
	font-weight: 300;
	color: #aaa;
	margin-bottom: 0
}

.login-page form,
.register-page form {
	margin: 2rem auto 1rem;
	max-width: 300px
}

.login-page a.forgot-pass:focus,
.login-page a.forgot-pass:hover,
.login-page a.signup:focus,
.login-page a.signup:hover,
.register-page a.forgot-pass:focus,
.register-page a.forgot-pass:hover,
.register-page a.signup:focus,
.register-page a.signup:hover {
	color: #66b0ff;
	text-decoration: none
}

.login-page a.forgot-pass,
.register-page a.forgot-pass {
	display: block
}

.login-page a.create-account,
.register-page a.create-account {
	border-radius: 50px;
	font-size: .75em;
	margin-top: 10px;
	color: #999;
	text-transform: uppercase
}

.login-page .terms-conditions,
.register-page .terms-conditions {
	margin-top: 20px
}

.login-page small,
.register-page small {
	font-size: .65em;
	color: #aaa;
	line-height: .9em
}

@media (min-width:768px) {
	.login-page p,
	.register-page p {
		font-size: .9em
	}
	.login-page form label.label-custom,
	.register-page form label.label-custom {
		font-size: .9em
	}
	.login-page form small,
	.register-page form small {
		font-size: .8em
	}
	.login-page .terms-conditions label,
	.register-page .terms-conditions label {
		font-size: .9em
	}
	.login-page a.forgot-pass,
	.login-page a.signup,
	.register-page a.forgot-pass,
	.register-page a.signup {
		font-size: .8em
	}
	.login-page small,
	.register-page small {
		font-size: .8em
	}
	.login-page .copyrights p,
	.register-page .copyrights p {
		font-size: .85em;
		font-weight: 400
	}
}


.form-group-material {
	position: relative;
	margin-bottom: 30px
}

input.input-material {
	width: 100%;
	border: none;
	border-bottom: 2px solid #e0e0e0;
	padding: 10px 10px 10px 35px;
	color: #333;
	font-weight: 400;
	transition: all 0.3s ease;
	background: transparent;
	border-radius: 0;
}

.input-group {
	position: relative;
}

.input-group-text {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #7c5cc4;
	z-index: 5;
}

/* Password toggle icon */
#togglePassword {
	right: 0;
	left: auto;
	cursor: pointer;
	padding: 0 10px;
}

/* Adjust input padding for the toggle icon */
#login-password {
	padding-right: 35px !important;
}

.dark-mode input.input-material {
    background: #283046
}

input.input-material~label {
	color: #888;
	position: absolute;
	top: 10px;
	left: 35px;
	cursor: text;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 400;
	pointer-events: none;
	background: transparent;
	padding: 0 5px;
	margin-left: -5px;
}

input.input-material~label.error {
	color: #dc3545;
	font-size: .75em;
	position: absolute;
	top: auto;
	bottom: -30px;
	left: 0
}

input.input-material:focus {
    border-color: #7c5cc4;
    outline: none;
    box-shadow: none;
    background: rgba(124, 92, 196, 0.03);
}

input.input-material~label.active {
    font-size: 0.7em;
    top: -12px;
    left: 30px;
    color: #7c5cc4;
    font-weight: 500;
    background: white;
    padding: 0 6px;
    border-radius: 3px;
    box-shadow: 0 0 0 2px rgba(124, 92, 196, 0.1);
}

input.form-control-custom:checked+label::before {
    background: #7c5cc4 !important;
}

.btn {
    font-weight: 400;
    border: 1px solid transparent;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    line-height: 1.5;
    -webkit-transition: background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
    transition: background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
    transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}


/* Login Button Styles */
.login-btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #7c5cc4, #9b72e6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 25px auto 15px;
    box-shadow: 0 4px 15px rgba(124, 92, 196, 0.3);
}

.login-btn .btn-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.login-btn .btn-icon {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    opacity: 0.8;
    transform: translateX(-5px);
}

.login-btn:hover .btn-icon {
    transform: translateX(0);
    opacity: 1;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #9b72e6, #7c5cc4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-btn:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    background-color: #6244a6;
    border-color: #6244a6;
}

.btn-success {
	color: color-yiq(#34cea7);
	background-color: #34cea7;
	border-color: #34cea7
}

.btn-success:hover {
	color: color-yiq(#34cea7);
	background-color: #34cea7;
	border-color: #34cea7
}

.btn-success.focus,
.btn-success:focus {
	-webkit-box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .5);
	box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .5)
}

.btn-info {
	color: color-yiq(#17a2b8);
	background-color: #17a2b8;
	border-color: #17a2b8
}

.btn-info:hover {
	color: color-yiq(#138496);
	background-color: #138496;
	border-color: #117a8b
}

.btn-info.focus,
.btn-info:focus {
	-webkit-box-shadow: 0 0 0 .2rem rgba(23, 162, 184, .5);
	box-shadow: 0 0 0 .2rem rgba(23, 162, 184, .5)
}

.btn-dark {
	color: color-yiq(#343a40);
	background-color: #343a40;
	border-color: #343a40
}

.btn-dark:hover {
	color: color-yiq(#23272b);
	background-color: #23272b;
	border-color: #1d2124
}

.btn-dark.focus,
.btn-dark:focus {
	-webkit-box-shadow: 0 0 0 .2rem rgba(52, 58, 64, .5);
	box-shadow: 0 0 0 .2rem rgba(52, 58, 64, .5)
}
