/* Login Page Specific Styles */
.login-container {
	min-height: 100vh;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
	overflow: hidden;
}

/* Floating geometric shapes */
.login-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(circle at 15% 85%, rgba(0, 0, 0, 0.03) 0%, transparent 40%),
		radial-gradient(circle at 85% 15%, rgba(0, 0, 0, 0.02) 0%, transparent 35%),
		radial-gradient(circle at 45% 45%, rgba(255, 255, 255, 0.8) 0%, transparent 30%);
	animation: subtleFloat 25s ease-in-out infinite;
}

.login-container::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.04) 2px, transparent 2px),
		radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.03) 1.5px, transparent 1.5px),
		radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.6) 3px, transparent 3px),
		radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.02) 2.5px, transparent 2.5px),
		radial-gradient(circle at 60% 20%, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
	background-size: 100px 100px, 80px 80px, 120px 120px, 90px 90px, 70px 70px;
	background-position: 0% 0%, 20% 20%, 40% 40%, 60% 60%, 80% 80%;
	animation: geometricDrift 30s linear infinite;
}

/* Additional floating elements */
.floating-shape {
	position: absolute;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);
	animation: floatShape 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
	width: 80px;
	height: 80px;
	top: 10%;
	left: 10%;
	animation-delay: 0s;
}

.floating-shape:nth-child(2) {
	width: 60px;
	height: 60px;
	top: 70%;
	right: 15%;
	animation-delay: 5s;
	background: rgba(255, 255, 255, 0.7);
}

.floating-shape:nth-child(3) {
	width: 40px;
	height: 40px;
	top: 40%;
	left: 80%;
	animation-delay: 10s;
	background: rgba(0, 0, 0, 0.03);
}

.floating-shape:nth-child(4) {
	width: 100px;
	height: 100px;
	bottom: 20%;
	left: 5%;
	animation-delay: 15s;
	background: rgba(255, 255, 255, 0.5);
}

@keyframes subtleFloat {
	0%, 100% { transform: translateY(0px) rotate(0deg); }
	25% { transform: translateY(-5px) rotate(0.5deg); }
	50% { transform: translateY(5px) rotate(-0.5deg); }
	75% { transform: translateY(-3px) rotate(0.3deg); }
}

@keyframes geometricDrift {
	0% { transform: translateX(0) translateY(0) rotate(0deg); }
	33% { transform: translateX(10px) translateY(-10px) rotate(2deg); }
	66% { transform: translateX(-10px) translateY(10px) rotate(-2deg); }
	100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

@keyframes floatShape {
	0%, 100% {
		transform: translateY(0px) rotate(0deg) scale(1);
		opacity: 0.3;
	}
	25% {
		transform: translateY(-20px) rotate(90deg) scale(1.1);
		opacity: 0.6;
	}
	50% {
		transform: translateY(-10px) rotate(180deg) scale(0.9);
		opacity: 0.4;
	}
	75% {
		transform: translateY(-30px) rotate(270deg) scale(1.05);
		opacity: 0.5;
	}
}

#login-form {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(102, 126, 234, 0.1);
            width: 100%;
            max-width: 450px;
            position: relative;
            z-index: 1;
            animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.login-header {
	text-align: center;
	padding: 40px 40px 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.login-logo {
	border-radius: 20px;
	display: flex;
	align-items: center;
}

@keyframes logoPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.login-logo img {
	height: 60px;
	object-fit: cover;
}

.login-title {
	font-size: 2rem;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 8px;
	letter-spacing: -0.5px;
}

.login-subtitle {
	color: #6c757d;
	font-size: 1rem;
	margin: 0;
	font-weight: 400;
}

.login-body {
	padding: 15px 40px;
}

.form-group {
	margin-bottom: 25px;
	position: relative;
}

.input-container {
	position: relative;
	width: 100%;
}

.form-label {
	display: block;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.form-control {
	width: 100%;
	padding: 16px 20px 16px 50px;
	border: 2px solid #e1e8ed;
	border-radius: 12px;
	font-size: 1rem;
	font-family: 'Inter', sans-serif;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(5px);
	color: #2c3e50;
	box-sizing: border-box;
}

.form-control:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	background: rgba(255, 255, 255, 0.95);
	transform: translateY(-2px);
}

.form-control::placeholder {
	color: #adb5bd;
}

.input-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #adb5bd;
	font-size: 1.1rem;
	transition: color 0.3s ease;
	z-index: 2;
	pointer-events: none;
}

.form-control:focus + .input-icon,
.form-control:not(:placeholder-shown) + .input-icon {
	color: #667eea;
}

/* Special styling for password field with toggle */
.password-field {
	position: relative;
}

.password-field .input-icon {
	left: 18px;
}

.password-toggle {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #adb5bd;
	font-size: 1.1rem;
	cursor: pointer;
	transition: color 0.3s ease;
	z-index: 2;
}

.password-toggle:hover {
	color: #667eea;
}

.form-control:focus ~ .password-toggle {
	color: #667eea;
}

.form-check {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
}

.form-check-input {
	width: 18px;
	height: 18px;
	margin-right: 12px;
	border: 2px solid #e1e8ed;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.form-check-input:checked {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: #667eea;
}

.form-check-label {
	font-size: 0.9rem;
	color: #6c757d;
	cursor: pointer;
	user-select: none;
}

.login-btn {
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	text-transform: none;
	letter-spacing: 0.5px;
}

.login-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.login-btn:hover::before {
	left: 100%;
}

.login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
	transform: translateY(0);
}

.login-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.login-footer {
	text-align: center;
	padding: 20px 40px 40px;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.login-footer-text {
	color: #6c757d;
	font-size: 0.9rem;
	margin: 0;
}

.login-footer-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.login-footer-link:hover {
	color: #764ba2;
	text-decoration: underline;
}

.error-message {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	color: #dc2626;
	font-size: 0.9rem;
	display: none;
	animation: shake 0.5s ease-in-out;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

.success-message {
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	border: 1px solid #6ee7b7;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	color: #047857;
	font-size: 0.9rem;
	display: none;
	animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 1s ease-in-out infinite;
	margin-right: 8px;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Dark theme support */
body.dark-theme .login-container {
	background: linear-gradient(135deg, #1a1d2a 0%, #2c3e50 100%);
}

body.dark-theme .login-card {
	background: linear-gradient(135deg, rgba(45, 52, 64, 0.95) 0%, rgba(35, 41, 51, 0.9) 100%);
	border-color: rgba(74, 144, 226, 0.2);
}

body.dark-theme .login-title {
	color: white;
}

body.dark-theme .login-subtitle {
	color: #b8c5d1;
}

body.dark-theme .form-label {
	color: #ffffff;
}

body.dark-theme .form-control {
	background: rgba(0, 0, 0, 0.2);
	border-color: rgba(74, 144, 226, 0.3);
	color: white;
}

body.dark-theme .form-control:focus {
	background: rgba(0, 0, 0, 0.3);
	border-color: #4a90e2;
}

body.dark-theme .form-control::placeholder {
	color: #8892a0;
}

body.dark-theme .form-check-label {
	color: #b8c5d1;
}

body.dark-theme .login-footer-text {
	color: #8892a0;
}

/* Icon spacing */
.form-label i {
	margin-right: 3px;
}

.login-btn i {
	margin-right: 3px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {

	.login-card {
		max-width: 100%;
		border-radius: 20px;
	}

	.login-header {
		padding: 30px 30px 15px;
	}

	.login-title {
		font-size: 1.8rem;
	}

	.login-body {
		padding: 30px 30px 20px;
	}

	.login-footer {
		padding: 15px 30px 30px;
	}
}

@media (max-width: 480px) {
	.login-title {
		font-size: 1.6rem;
	}

	.login-body {
		padding: 25px 20px 15px;
	}

	.login-header {
		padding: 25px 20px 10px;
	}

	.login-footer {
		padding: 10px 20px 25px;
	}
}
@media (max-width: 378px) {
	.login-container {
		padding: 15px 35px;
	}
}
 .language-selector {
            position: absolute;
            top: 52px;
            right: 38px;
            z-index: 20;
        }
.language-select {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 0.85rem;
	backdrop-filter: blur(5px);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	border: 2px solid #e1e8ed
}

.language-select:focus {
	outline: none;
	border-color: white;
}
.oauth-section {
    margin-top: 30px;
	margin-bottom: 15px;
    text-align: center;
}

.oauth-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.oauth-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.oauth-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #e1e8ed;
    color: #2c3e50;
    font-size: 1.3rem;
}

.oauth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.oauth-btn.github:hover { background: #333; color: white; }
.oauth-btn.yandex:hover { background: #ffcc00; color: #000; }
.oauth-btn.vk:hover { background: #4680C2; color: white; }
.oauth-btn.google:hover { background: #4285f4; color: white; }
.oauth-btn.apple:hover { background: grey; color: white; }

/* SVG sizing */
.oauth-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Dark theme support for OAuth */
body.dark-theme .oauth-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-theme .oauth-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
@font-face{
	font-family:"mont";
	src:url(/design/fonts/Montserrat/Montserrat-Medium.ttf)
}
#login-form{
	font-family: "mont";
}
.top-header{
	margin-bottom: 15px;
}
.top-header_no-lang
{
	display: flex;
	justify-content: center;
}
.login-logo_center
{
	justify-content: center;
	margin: 0 auto;
}