using System.Windows.Forms;

namespace ZhkhApp
{
    partial class LoginForm
    {
        private System.ComponentModel.IContainer components = null;
        private TextBox txtUsername;
        private TextBox txtPassword;
        private Button btnLogin;
        private Button btnExit;
        private Label lblStatus;
        private Label lblTitle;

        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.txtUsername = new TextBox();
            this.txtPassword = new TextBox();
            this.btnLogin = new Button();
            this.btnExit = new Button();
            this.lblStatus = new Label();
            this.lblTitle = new Label();
            this.SuspendLayout();

            // txtUsername
            this.txtUsername.Location = new System.Drawing.Point(160, 80);
            this.txtUsername.Size = new System.Drawing.Size(160, 23);

            // txtPassword (без PasswordChar здесь, он будет установлен в коде)
            this.txtPassword.Location = new System.Drawing.Point(160, 120);
            this.txtPassword.Size = new System.Drawing.Size(160, 23);
            this.txtPassword.UseSystemPasswordChar = true;  // вместо PasswordChar

            // btnLogin
            this.btnLogin.Text = "Войти";
            this.btnLogin.Location = new System.Drawing.Point(80, 200);
            this.btnLogin.Size = new System.Drawing.Size(90, 35);
            this.btnLogin.BackColor = System.Drawing.Color.LightGreen;
            this.btnLogin.Click += BtnLogin_Click;

            // btnExit
            this.btnExit.Text = "Выход";
            this.btnExit.Location = new System.Drawing.Point(200, 200);
            this.btnExit.Size = new System.Drawing.Size(90, 35);
            this.btnExit.BackColor = System.Drawing.Color.LightCoral;
            this.btnExit.Click += BtnExit_Click;

            // lblStatus
            this.lblStatus.Text = "";
            this.lblStatus.Location = new System.Drawing.Point(50, 160);
            this.lblStatus.Size = new System.Drawing.Size(270, 25);
            this.lblStatus.ForeColor = System.Drawing.Color.Red;

            // lblTitle
            this.lblTitle.Text = "Система управления ЖКХ";
            this.lblTitle.Font = new System.Drawing.Font("Segoe UI", 14, System.Drawing.FontStyle.Bold);
            this.lblTitle.Location = new System.Drawing.Point(60, 20);
            this.lblTitle.Size = new System.Drawing.Size(260, 30);
            this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.lblTitle.ForeColor = System.Drawing.Color.DarkBlue;

            // LoginForm
            this.Text = "Авторизация - ЖКХ";
            this.Size = new System.Drawing.Size(380, 280);
            this.StartPosition = FormStartPosition.CenterScreen;
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.BackColor = System.Drawing.Color.WhiteSmoke;

            this.Controls.Add(this.lblTitle);
            this.Controls.Add(this.lblStatus);
            this.Controls.Add(this.btnExit);
            this.Controls.Add(this.btnLogin);
            this.Controls.Add(this.txtPassword);
            this.Controls.Add(this.txtUsername);
            this.Controls.Add(new Label() { Text = "Пользователь:", Location = new System.Drawing.Point(50, 80), Size = new System.Drawing.Size(100, 25) });
            this.Controls.Add(new Label() { Text = "Пароль:", Location = new System.Drawing.Point(50, 120), Size = new System.Drawing.Size(100, 25) });

            this.ResumeLayout(false);
            this.PerformLayout();
        }
    }
}