:root {
	--vh: 1vh;
}

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

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
}

body {
	font-family: Arial, sans-serif;
	height: 100vh;
	background-color: black;
}

form {
	position: relative;
}

.fullscreen {
	height: 100dvh;
	height: calc(var(--vh, 1vh) * 100);
}

.form-row {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	width: 100%;
}
.form-row:last-child {
	margin-bottom: 0px;
}

.label {
	width: 130px;
	text-align: right;
	color: #000;
	font-family: Courier New;
	font-size: 20px;
	margin-right: 8px;
	flex-shrink: 0;
	letter-spacing: -0.05em;
}

.input-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
}

.input-field {
	width: 100%;
	max-width: none;
	padding: 3px 5px;
	border: 2px solid rgb(160,60,50);
	border-radius: 3px;
	background-color: #ffffff;
	color: #000000;
	font-size: 19px;
	box-sizing: border-box;
	box-shadow: 0 4px 4px rgba(0,0,0,0.5);
	outline: none;
	transition: border-color 0.3s ease;
}

.input-field:focus {
	border-color: rgb(80,30,25);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.input-field::placeholder {
	color: #666666;
}

.initiate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.initiate-label {
    white-space: nowrap;
    margin-right: 10px;
    width: 130px;
    text-align: right;
    color: #000;
    font-family: Courier New;
    font-size: 18px;
    flex-shrink: 0;
    letter-spacing: -0.05em;
}

.login-btn {
    width: 100%;
    max-width: none;
    padding: 3px 5px;
    border: 2px solid rgb(160,60,50);
    border-radius: 3px;
    background-color: #ffffff;
    color: #000000;
    font-size: 19px;
    box-sizing: border-box;
    box-shadow: 0 4px 4px rgba(0,0,0,0.5);
    outline: none;
    transition: border-color 0.3s ease;
    cursor: pointer;
    font-family: Courier New;
    min-width: 80px;
    text-align: center;
}

.login-btn:hover {
    border-color: rgb(80,30,25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background-color: #f0f0f0;
}

/* Десктоп версия */
.center-block {
	display: flex;
	width: 100%;
	height: 100vh;
}

.image-block {
	flex: 1;
	background-image: url('images/logo_big.jpg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	padding-left: 20px;
}

.form-block {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-left: 15px;
	background-image: url('images/bg.jpg');
}

.frame-border {
	height: 7px;
	background-repeat: repeat-x;
	width: 40%;
	min-width: 200px;
}
.frame-border.top {
	background-image: url('images/frame-top.png');
	border-left: solid 1px rgb(70,40,40);
	border-right: solid 1px rgb(70,40,40);
}
.frame-border.bottom {
	background-image: url('images/frame-bottom.png');
	border-left: solid 1px rgb(20,10,10);
	border-right: solid 1px rgb(20,10,10);
}

.form-container {
	background: linear-gradient(to bottom, rgb(170,170,170), rgb(70,70,70));
	padding: 14px 10px;;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	width: 40%;
	min-width: 200px;
	border-left: solid 1px rgb(70,40,40);
	border-right: solid 1px rgb(70,40,40);
	position: relative;
	display: flex;
	flex-direction: column;
}

.error-message {
	width: 70%;
	align-self: center;
	padding-bottom: 10px;
}

.logo-corner {
	position: absolute;
	left: 10px;
	top: 5px;
	width: 40px;
	height: 40px;
	background-image: url('images/logo_small.png');
	background-size: contain;
	background-repeat: no-repeat;
}

.icon-corner {
	position: absolute;
	background-image: url('images/sym.png');
	background-size: contain;
	background-repeat: no-repeat;
}

.icon-corner.block {
	bottom: 50px;
	right: 50px;
	width: 90px;
	height: 90px;
}

/* Мобильная версия */
@media (max-width: 768px) {
	.center-block {
		flex-direction: column;
		justify-content: center;
		width: auto;
		height: 100%;
	}

	.image-block {
		display: block;
		padding-left: 0px;
	}
	
	.form-block {
		align-items: center;
		justify-content: flex-start;
		padding-left: 0px;
		flex: none;
		height: 30%;
		margin: 0px 10px;
	}
	
	.frame-border {
		width: 100%;
	}

	.form-container {
		width: 100%;
	}

	.icon-corner.block {
		display: none;
	}

	.icon-corner.form {
		bottom: 15px;
		right: 0px;
		width: 60px;
		height: 60px;
	}
}

@media (max-width: 480px) {
	.center-block {
		margin: 10px;
	}
}

@media (max-height: 700px) {
    .form-block {
        height: 40%;
    }
}
